Socket
Socket
Sign inDemoInstall

@contentful/f36-typography

Package Overview
Dependencies
Maintainers
103
Versions
400
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/f36-typography - npm Package Compare versions

Comparing version 4.0.1-next-v4-5566.2134 to 4.0.1-next-v4-5635.2153

2

dist/main.js

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

var e=f(require("@babel/runtime/helpers/extends")),{css:t,cx:i}=require("emotion"),n=require("react"),a=f(n),{useContext:r,createContext:o}=n,l=f(require("@contentful/f36-tokens")),{Box:c}=require("@contentful/f36-core");function s(e,t,i,n){Object.defineProperty(e,t,{get:i,set:n,enumerable:!0,configurable:!0})}function f(e){return e&&e.__esModule?e.default:e}var g={};s(g,"Heading",(()=>p)),s(g,"Subheading",(()=>S)),s(g,"Typography",(()=>h)),s(g,"DisplayText",(()=>z)),s(g,"SectionHeading",(()=>b)),s(g,"Text",(()=>T));const d={displayText:"spacingL",displayTextLarge:"spacingXl",heading:"spacingM",sectionHeading:"spacingL",subheading:"spacingM",text:"spacingM"},u=o({});function h(t){return a.createElement(u.Provider,{value:d},a.createElement(c,e({testId:"cf-ui-text-container"},t)))}const m=({children:n,className:o,...s},f)=>{const g=r(u);return a.createElement(c,e({as:"h1",display:"block",margin:"none",marginBottom:g.heading,testId:"cf-ui-heading",className:i(t({fontFamily:l.fontStackPrimary,fontWeight:l.fontWeightDemiBold,color:l.colorTextDark,fontSize:l.fontSizeXl,lineHeight:l.lineHeightXl,textRendering:"optimizeLegibility"},""),o)},s,{ref:f}),n)},p=a.forwardRef(m),x=({children:n,className:o,...c},s)=>{const f=r(u);return a.createElement(p,e({as:"h2",testId:"cf-ui-subheading",marginBottom:f.subheading,className:i(t({fontSize:l.fontSizeL,lineHeight:l.lineHeightL},""),o)},c,{ref:s}),n)},S=a.forwardRef(x),H=({children:n,className:o,size:c="default",...s},f)=>{const g=r(u);let d="";return d=t("huge"===c?{fontSize:l.fontSize4Xl,lineHeight:l.lineHeight4Xl}:"large"===c?{fontSize:l.fontSize3Xl,lineHeight:l.lineHeight3Xl}:{fontSize:l.fontSize2Xl,lineHeight:l.lineHeight2Xl},""),a.createElement(p,e({as:"h1",testId:"cf-ui-display-text",marginBottom:"default"===c?g.displayText:g.displayTextLarge,className:i(d,o)},s,{ref:f}),n)},z=a.forwardRef(H),y=({children:n,className:o,...c},s)=>{const f=r(u);return a.createElement(p,e({as:"h3",testId:"cf-ui-section-heading",marginBottom:f.sectionHeading,className:i(t({fontSize:l.fontSizeS,lineHeight:l.lineHeightS,letterSpacing:l.letterSpacingWide,textTransform:"uppercase"},""),o)},c,{ref:s}),n)},b=a.forwardRef(y),N=({children:n,className:o,...c},s)=>{const f=r(u);return a.createElement(p,e({as:"p",testId:"cf-ui-text",marginBottom:f.text,className:i(t({fontWeight:l.fontWeightNormal,color:l.colorTextMid,fontSize:l.fontSizeM,lineHeight:l.lineHeightM},""),o)},c,{ref:s}),n)},T=a.forwardRef(N);var X,E;X=module.exports,E=g,Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(X,e,{enumerable:!0,get:function(){return E[e]}})}));
var e=f(require("@babel/runtime/helpers/extends")),{css:t,cx:n}=require("emotion"),i=require("react"),a=f(i),{useContext:r,createContext:o}=i,l=f(require("@contentful/f36-tokens")),{Box:c}=require("@contentful/f36-core");function s(e,t,n,i){Object.defineProperty(e,t,{get:n,set:i,enumerable:!0,configurable:!0})}function f(e){return e&&e.__esModule?e.default:e}var g={};s(g,"Heading",(()=>p)),s(g,"Subheading",(()=>x)),s(g,"Typography",(()=>h)),s(g,"DisplayText",(()=>y)),s(g,"SectionHeading",(()=>b)),s(g,"Text",(()=>T));const d={displayText:"spacingL",displayTextLarge:"spacingXl",heading:"spacingM",sectionHeading:"spacingL",subheading:"spacingM",text:"spacingM"},u=o({});function h(t){return a.createElement(u.Provider,{value:d},a.createElement(c,e({testId:"cf-ui-text-container"},t)))}const m=({children:i,className:o,...s},f)=>{const g=r(u);return a.createElement(c,e({as:"h1",display:"block",margin:"none",marginBottom:g.heading,testId:"cf-ui-heading",className:n(t({fontFamily:l.fontStackPrimary,fontWeight:l.fontWeightDemiBold,color:l.colorTextDark,fontSize:l.fontSizeXl,lineHeight:l.lineHeightXl,textRendering:"optimizeLegibility"},""),o)},s,{ref:f}),i)},p=a.forwardRef(m),S=({children:i,className:o,...c},s)=>{const f=r(u);return a.createElement(p,e({as:"h2",testId:"cf-ui-subheading",marginBottom:f.subheading,className:n(t({fontSize:l.fontSizeL,lineHeight:l.lineHeightL},""),o)},c,{ref:s}),i)},x=a.forwardRef(S),H=({children:i,className:o,size:c="default",...s},f)=>{const g=r(u);let d="";return d=t("huge"===c?{fontSize:l.fontSize4Xl,lineHeight:l.lineHeight4Xl}:"large"===c?{fontSize:l.fontSize3Xl,lineHeight:l.lineHeight3Xl}:{fontSize:l.fontSize2Xl,lineHeight:l.lineHeight2Xl},""),a.createElement(p,e({as:"h1",testId:"cf-ui-display-text",marginBottom:"default"===c?g.displayText:g.displayTextLarge,className:n(d,o)},s,{ref:f}),i)},y=a.forwardRef(H),z=({children:i,className:o,...c},s)=>{const f=r(u);return a.createElement(p,e({as:"h3",testId:"cf-ui-section-heading",marginBottom:f.sectionHeading,className:n(t({fontSize:l.fontSizeS,lineHeight:l.lineHeightS,letterSpacing:l.letterSpacingWide,textTransform:"uppercase"},""),o)},c,{ref:s}),i)},b=a.forwardRef(z),N=({children:i,className:o,...c},s)=>{const f=r(u);return a.createElement(p,e({as:"p",testId:"cf-ui-text",marginBottom:f.text,className:n(t({fontWeight:l.fontWeightNormal,color:l.gray700,fontSize:l.fontSizeM,lineHeight:l.lineHeightM},""),o)},c,{ref:s}),i)},T=a.forwardRef(N);var X,E;X=module.exports,E=g,Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(X,e,{enumerable:!0,get:function(){return E[e]}})}));
//# sourceMappingURL=main.js.map

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

import e from"@babel/runtime/helpers/esm/extends";import{cx as t,css as i}from"emotion";import n,{useContext as a,createContext as o}from"react";import r from"@contentful/f36-tokens";import{Box as s}from"@contentful/f36-core";function l(e,t,i,n){Object.defineProperty(e,t,{get:i,set:n,enumerable:!0,configurable:!0})}var c={};l(c,"Heading",(()=>h)),l(c,"Subheading",(()=>u)),l(c,"Typography",(()=>m)),l(c,"DisplayText",(()=>S)),l(c,"SectionHeading",(()=>y)),l(c,"Text",(()=>T));const f={displayText:"spacingL",displayTextLarge:"spacingXl",heading:"spacingM",sectionHeading:"spacingL",subheading:"spacingM",text:"spacingM"},g=o({});function m(t){return n.createElement(g.Provider,{value:f},n.createElement(s,e({testId:"cf-ui-text-container"},t)))}const d=({children:o,className:l,...c},f)=>{const m=a(g);return n.createElement(s,e({as:"h1",display:"block",margin:"none",marginBottom:m.heading,testId:"cf-ui-heading",className:t(i({fontFamily:r.fontStackPrimary,fontWeight:r.fontWeightDemiBold,color:r.colorTextDark,fontSize:r.fontSizeXl,lineHeight:r.lineHeightXl,textRendering:"optimizeLegibility"},""),l)},c,{ref:f}),o)},h=n.forwardRef(d),p=({children:o,className:s,...l},c)=>{const f=a(g);return n.createElement(h,e({as:"h2",testId:"cf-ui-subheading",marginBottom:f.subheading,className:t(i({fontSize:r.fontSizeL,lineHeight:r.lineHeightL},""),s)},l,{ref:c}),o)},u=n.forwardRef(p),x=({children:o,className:s,size:l="default",...c},f)=>{const m=a(g);let d="";return d=i("huge"===l?{fontSize:r.fontSize4Xl,lineHeight:r.lineHeight4Xl}:"large"===l?{fontSize:r.fontSize3Xl,lineHeight:r.lineHeight3Xl}:{fontSize:r.fontSize2Xl,lineHeight:r.lineHeight2Xl},""),n.createElement(h,e({as:"h1",testId:"cf-ui-display-text",marginBottom:"default"===l?m.displayText:m.displayTextLarge,className:t(d,s)},c,{ref:f}),o)},S=n.forwardRef(x),H=({children:o,className:s,...l},c)=>{const f=a(g);return n.createElement(h,e({as:"h3",testId:"cf-ui-section-heading",marginBottom:f.sectionHeading,className:t(i({fontSize:r.fontSizeS,lineHeight:r.lineHeightS,letterSpacing:r.letterSpacingWide,textTransform:"uppercase"},""),s)},l,{ref:c}),o)},y=n.forwardRef(H),z=({children:o,className:s,...l},c)=>{const f=a(g);return n.createElement(h,e({as:"p",testId:"cf-ui-text",marginBottom:f.text,className:t(i({fontWeight:r.fontWeightNormal,color:r.colorTextMid,fontSize:r.fontSizeM,lineHeight:r.lineHeightM},""),s)},l,{ref:c}),o)},T=n.forwardRef(z);export{h as Heading,u as Subheading,m as Typography,S as DisplayText,y as SectionHeading,T as Text};
import e from"@babel/runtime/helpers/esm/extends";import{css as t,cx as i}from"emotion";import n,{useContext as a,createContext as r}from"react";import o from"@contentful/f36-tokens";import{Box as s}from"@contentful/f36-core";function l(e,t,i,n){Object.defineProperty(e,t,{get:i,set:n,enumerable:!0,configurable:!0})}var c={};l(c,"Heading",(()=>h)),l(c,"Subheading",(()=>u)),l(c,"Typography",(()=>m)),l(c,"DisplayText",(()=>x)),l(c,"SectionHeading",(()=>y)),l(c,"Text",(()=>b));const g={displayText:"spacingL",displayTextLarge:"spacingXl",heading:"spacingM",sectionHeading:"spacingL",subheading:"spacingM",text:"spacingM"},f=r({});function m(t){return n.createElement(f.Provider,{value:g},n.createElement(s,e({testId:"cf-ui-text-container"},t)))}const d=({children:r,className:l,...c},g)=>{const m=a(f);return n.createElement(s,e({as:"h1",display:"block",margin:"none",marginBottom:m.heading,testId:"cf-ui-heading",className:i(t({fontFamily:o.fontStackPrimary,fontWeight:o.fontWeightDemiBold,color:o.colorTextDark,fontSize:o.fontSizeXl,lineHeight:o.lineHeightXl,textRendering:"optimizeLegibility"},""),l)},c,{ref:g}),r)},h=n.forwardRef(d),p=({children:r,className:s,...l},c)=>{const g=a(f);return n.createElement(h,e({as:"h2",testId:"cf-ui-subheading",marginBottom:g.subheading,className:i(t({fontSize:o.fontSizeL,lineHeight:o.lineHeightL},""),s)},l,{ref:c}),r)},u=n.forwardRef(p),S=({children:r,className:s,size:l="default",...c},g)=>{const m=a(f);let d="";return d=t("huge"===l?{fontSize:o.fontSize4Xl,lineHeight:o.lineHeight4Xl}:"large"===l?{fontSize:o.fontSize3Xl,lineHeight:o.lineHeight3Xl}:{fontSize:o.fontSize2Xl,lineHeight:o.lineHeight2Xl},""),n.createElement(h,e({as:"h1",testId:"cf-ui-display-text",marginBottom:"default"===l?m.displayText:m.displayTextLarge,className:i(d,s)},c,{ref:g}),r)},x=n.forwardRef(S),H=({children:r,className:s,...l},c)=>{const g=a(f);return n.createElement(h,e({as:"h3",testId:"cf-ui-section-heading",marginBottom:g.sectionHeading,className:i(t({fontSize:o.fontSizeS,lineHeight:o.lineHeightS,letterSpacing:o.letterSpacingWide,textTransform:"uppercase"},""),s)},l,{ref:c}),r)},y=n.forwardRef(H),z=({children:r,className:s,...l},c)=>{const g=a(f);return n.createElement(h,e({as:"p",testId:"cf-ui-text",marginBottom:g.text,className:i(t({fontWeight:o.fontWeightNormal,color:o.gray700,fontSize:o.fontSizeM,lineHeight:o.lineHeightM},""),s)},l,{ref:c}),r)},b=n.forwardRef(z);export{h as Heading,u as Subheading,m as Typography,x as DisplayText,y as SectionHeading,b as Text};
//# sourceMappingURL=module.js.map
{
"name": "@contentful/f36-typography",
"version": "4.0.1-next-v4-5566.2134+9f149b09",
"version": "4.0.1-next-v4-5635.2153+5ed0eac7",
"description": "Forma 36: typography React Component",

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

"@babel/runtime": "^7.6.2",
"@contentful/f36-core": "4.0.1-next-v4-5566.2134+9f149b09",
"@contentful/f36-tokens": "4.0.1-next-v4-5566.2134+9f149b09",
"@contentful/f36-core": "4.0.1-next-v4-5635.2153+5ed0eac7",
"@contentful/f36-tokens": "4.0.1-next-v4-5635.2153+5ed0eac7",
"emotion": "^10.0.17"

@@ -36,3 +36,3 @@ },

},
"gitHead": "9f149b09d11c5b8f7293df140458e6020dc8090d"
"gitHead": "5ed0eac7f02eaf0ae3181b42d06712ebf2b97fe5"
}

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

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

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