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

@contentful/f36-core

Package Overview
Dependencies
Maintainers
100
Versions
406
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/f36-core - npm Package Compare versions

Comparing version 4.0.1-next-v4-4528.2001 to 4.0.1-next-v4-4531.2002

2

dist/main.js

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

var n=u(require("@babel/runtime/helpers/extends")),e=require("react"),i=u(e),{createElement:a,forwardRef:t}=e,r=u(require("@emotion/is-prop-valid")),{cx:l,css:o}=require("emotion"),s=u(require("@contentful/f36-tokens"));function d(n,e){return Object.keys(e).forEach((function(i){"default"!==i&&"__esModule"!==i&&Object.defineProperty(n,i,{enumerable:!0,get:function(){return e[i]}})})),n}function g(n,e,i,a){Object.defineProperty(n,e,{get:i,set:a,enumerable:!0,configurable:!0})}function u(n){return n&&n.__esModule?n.default:n}var c={};g(c,"Primitive",(()=>f));const p="div",f=i.forwardRef((function(e,a){const{as:t=p,testId:l,...o}=e,s={};for(const n in o)r(n)?s[n]=o[n]:console.warn("Invalid prop",n);return i.createElement(t,n({ref:a,"data-test-id":l},s,{as:void 0}))}));var m={};g(m,"Flex",(()=>w));var x={};g(x,"Box",(()=>y));const h={none:0,spacing2Xs:s.spacing2Xs,spacingXs:s.spacingXs,spacingS:s.spacingS,spacingM:s.spacingM,spacingL:s.spacingL,spacingXl:s.spacingXl,spacing2Xl:s.spacing2Xl,spacing3Xl:s.spacing3Xl,spacing4Xl:s.spacing4Xl};function v(n){return h[n]}const y=t((({display:e="block",children:i,className:t,...r},s)=>{return a(f,n({className:l(o({display:e,...(d=r,Object.assign({},d.margin?{margin:v(d.margin)}:null,d.marginLeft?{marginLeft:v(d.marginLeft)}:null,d.marginRight?{marginRight:v(d.marginRight)}:null,d.marginTop?{marginTop:v(d.marginTop)}:null,d.marginBottom?{marginBottom:v(d.marginBottom)}:null,d.padding?{padding:v(d.padding)}:null,d.paddingLeft?{paddingLeft:v(d.paddingLeft)}:null,d.paddingRight?{paddingRight:v(d.paddingRight)}:null,d.paddingTop?{paddingTop:v(d.paddingTop)}:null,d.paddingBottom?{paddingBottom:v(d.paddingBottom)}:null))},""),t)},r,{ref:s}),i);var d})),w=t((({isInline:e,alignItems:i,alignSelf:t,alignContent:r,flex:s,flexBasis:d,flexShrink:g,flexDirection:u,flexGrow:c,flexWrap:p,fullHeight:f,fullWidth:m,justifyContent:x,justifyItems:h,justifySelf:v,order:w,className:j,children:X,...b},S)=>a(y,n({as:"div",display:e?"inline-flex":"flex",className:l(o({width:m?"100%":void 0,height:f?"100%":void 0,flex:s,flexBasis:d,flexShrink:g,flexDirection:u,justifyContent:x,justifyItems:h,justifySelf:v,alignItems:i,alignSelf:t,alignContent:r,order:w,flexWrap:p,flexGrow:c},""),j)},b,{ref:S}),X)));var j={};g(j,"Grid",(()=>X)),g(j,"GridItem",(()=>b));const X=t((({alignContent:e,children:i,columnGap:t="spacingM",columns:r="auto",flow:s,isInline:d,justifyContent:g,rowGap:u="none",rows:c="auto",className:p,...f},m)=>{var x,h;const w=n=>"number"==typeof n?`repeat(${n}, minmax(0, 1fr))`:n;return a(y,n({as:"div",display:d?"inline-grid":"grid",className:l(o({gridTemplateColumns:w(r),gridTemplateRows:w(c),flow:s,justifyContent:g,alignContent:e,columnGap:null!=(x=v(t))?x:0,rowGap:null!=(h=v(u))?h:0},""),p)},f,{ref:m}),i)})),b=t((({children:e,columnStart:i,columnEnd:t,rowStart:r,rowEnd:s,area:d,order:g,className:u,...c},p)=>{const f=d||[r||"auto",i||"auto",s||"auto",t||"auto"].join(" / ");return a(y,n({as:"div",className:l(o({gridArea:f,order:g},""),u)},c,{ref:p}),e)}));d(module.exports,c),d(module.exports,m),d(module.exports,j),d(module.exports,x);
var n=u(require("@babel/runtime/helpers/extends")),e=require("react"),i=u(e),{forwardRef:a,createElement:t}=e,r=u(require("@emotion/is-prop-valid")),{cx:l,css:o}=require("emotion"),s=u(require("@contentful/f36-tokens"));function d(n,e){return Object.keys(e).forEach((function(i){"default"!==i&&"__esModule"!==i&&Object.defineProperty(n,i,{enumerable:!0,get:function(){return e[i]}})})),n}function g(n,e,i,a){Object.defineProperty(n,e,{get:i,set:a,enumerable:!0,configurable:!0})}function u(n){return n&&n.__esModule?n.default:n}var c={};g(c,"Primitive",(()=>f));const p="div",f=i.forwardRef((function(e,a){const{as:t=p,testId:l,...o}=e,s={};for(const n in o)r(n)?s[n]=o[n]:console.warn("Invalid prop",n);return i.createElement(t,n({ref:a,"data-test-id":l},s,{as:void 0}))}));var m={};g(m,"Flex",(()=>w));var x={};g(x,"Box",(()=>y));const h={none:0,spacing2Xs:s.spacing2Xs,spacingXs:s.spacingXs,spacingS:s.spacingS,spacingM:s.spacingM,spacingL:s.spacingL,spacingXl:s.spacingXl,spacing2Xl:s.spacing2Xl,spacing3Xl:s.spacing3Xl,spacing4Xl:s.spacing4Xl};function v(n){return h[n]}const y=a((({display:e="block",children:i,className:a,...r},s)=>{return t(f,n({className:l(o({display:e,...(d=r,Object.assign({},d.margin?{margin:v(d.margin)}:null,d.marginLeft?{marginLeft:v(d.marginLeft)}:null,d.marginRight?{marginRight:v(d.marginRight)}:null,d.marginTop?{marginTop:v(d.marginTop)}:null,d.marginBottom?{marginBottom:v(d.marginBottom)}:null,d.padding?{padding:v(d.padding)}:null,d.paddingLeft?{paddingLeft:v(d.paddingLeft)}:null,d.paddingRight?{paddingRight:v(d.paddingRight)}:null,d.paddingTop?{paddingTop:v(d.paddingTop)}:null,d.paddingBottom?{paddingBottom:v(d.paddingBottom)}:null))},""),a)},r,{ref:s}),i);var d})),w=a((({isInline:e,alignItems:i,alignSelf:a,alignContent:r,flex:s,flexBasis:d,flexShrink:g,flexDirection:u,flexGrow:c,flexWrap:p,fullHeight:f,fullWidth:m,justifyContent:x,justifyItems:h,justifySelf:v,order:w,className:j,children:X,...b},S)=>t(y,n({as:"div",display:e?"inline-flex":"flex",className:l(o({width:m?"100%":void 0,height:f?"100%":void 0,flex:s,flexBasis:d,flexShrink:g,flexDirection:u,justifyContent:x,justifyItems:h,justifySelf:v,alignItems:i,alignSelf:a,alignContent:r,order:w,flexWrap:p,flexGrow:c},""),j)},b,{ref:S}),X)));var j={};g(j,"Grid",(()=>X)),g(j,"GridItem",(()=>b));const X=a((({alignContent:e,children:i,columnGap:a="spacingM",columns:r="auto",flow:s,isInline:d,justifyContent:g,rowGap:u="none",rows:c="auto",className:p,...f},m)=>{var x,h;const w=n=>"number"==typeof n?`repeat(${n}, minmax(0, 1fr))`:n;return t(y,n({as:"div",display:d?"inline-grid":"grid",className:l(o({gridTemplateColumns:w(r),gridTemplateRows:w(c),flow:s,justifyContent:g,alignContent:e,columnGap:null!=(x=v(a))?x:0,rowGap:null!=(h=v(u))?h:0},""),p)},f,{ref:m}),i)})),b=a((({children:e,columnStart:i,columnEnd:a,rowStart:r,rowEnd:s,area:d,order:g,className:u,...c},p)=>{const f=d||[r||"auto",i||"auto",s||"auto",a||"auto"].join(" / ");return t(y,n({as:"div",className:l(o({gridArea:f,order:g},""),u)},c,{ref:p}),e)}));d(module.exports,c),d(module.exports,m),d(module.exports,j),d(module.exports,x);
//# sourceMappingURL=main.js.map

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

import n from"@babel/runtime/helpers/esm/extends";import i,{forwardRef as a,createElement as e}from"react";import t from"@emotion/is-prop-valid";import{cx as l,css as r}from"emotion";import o from"@contentful/f36-tokens";function s(n,i,a,e){Object.defineProperty(n,i,{get:a,set:e,enumerable:!0,configurable:!0})}s({},"Primitive",(()=>d));const g="div",d=i.forwardRef((function(a,e){const{as:l=g,testId:r,...o}=a,s={};for(const n in o)t(n)?s[n]=o[n]:console.warn("Invalid prop",n);return i.createElement(l,n({ref:e,"data-test-id":r},s,{as:void 0}))}));s({},"Flex",(()=>f));s({},"Box",(()=>c));const p={none:0,spacing2Xs:o.spacing2Xs,spacingXs:o.spacingXs,spacingS:o.spacingS,spacingM:o.spacingM,spacingL:o.spacingL,spacingXl:o.spacingXl,spacing2Xl:o.spacing2Xl,spacing3Xl:o.spacing3Xl,spacing4Xl:o.spacing4Xl};function m(n){return p[n]}const c=a((({display:i="block",children:a,className:t,...o},s)=>{return e(d,n({className:l(r({display:i,...(g=o,Object.assign({},g.margin?{margin:m(g.margin)}:null,g.marginLeft?{marginLeft:m(g.marginLeft)}:null,g.marginRight?{marginRight:m(g.marginRight)}:null,g.marginTop?{marginTop:m(g.marginTop)}:null,g.marginBottom?{marginBottom:m(g.marginBottom)}:null,g.padding?{padding:m(g.padding)}:null,g.paddingLeft?{paddingLeft:m(g.paddingLeft)}:null,g.paddingRight?{paddingRight:m(g.paddingRight)}:null,g.paddingTop?{paddingTop:m(g.paddingTop)}:null,g.paddingBottom?{paddingBottom:m(g.paddingBottom)}:null))},""),t)},o,{ref:s}),a);var g})),f=a((({isInline:i,alignItems:a,alignSelf:t,alignContent:o,flex:s,flexBasis:g,flexShrink:d,flexDirection:p,flexGrow:m,flexWrap:f,fullHeight:u,fullWidth:x,justifyContent:h,justifyItems:v,justifySelf:w,order:y,className:X,children:j,...B},G)=>e(c,n({as:"div",display:i?"inline-flex":"flex",className:l(r({width:x?"100%":void 0,height:u?"100%":void 0,flex:s,flexBasis:g,flexShrink:d,flexDirection:p,justifyContent:h,justifyItems:v,justifySelf:w,alignItems:a,alignSelf:t,alignContent:o,order:y,flexWrap:f,flexGrow:m},""),X)},B,{ref:G}),j)));var u={};s(u,"Grid",(()=>x)),s(u,"GridItem",(()=>h));const x=a((({alignContent:i,children:a,columnGap:t="spacingM",columns:o="auto",flow:s,isInline:g,justifyContent:d,rowGap:p="none",rows:f="auto",className:u,...x},h)=>{var v,w;const y=n=>"number"==typeof n?`repeat(${n}, minmax(0, 1fr))`:n;return e(c,n({as:"div",display:g?"inline-grid":"grid",className:l(r({gridTemplateColumns:y(o),gridTemplateRows:y(f),flow:s,justifyContent:d,alignContent:i,columnGap:null!=(v=m(t))?v:0,rowGap:null!=(w=m(p))?w:0},""),u)},x,{ref:h}),a)})),h=a((({children:i,columnStart:a,columnEnd:t,rowStart:o,rowEnd:s,area:g,order:d,className:p,...m},f)=>{const u=g||[o||"auto",a||"auto",s||"auto",t||"auto"].join(" / ");return e(c,n({as:"div",className:l(r({gridArea:u,order:d},""),p)},m,{ref:f}),i)}));export{d as Primitive,f as Flex,x as Grid,h as GridItem,c as Box};
import n from"@babel/runtime/helpers/esm/extends";import i,{forwardRef as a,createElement as e}from"react";import t from"@emotion/is-prop-valid";import{css as l,cx as r}from"emotion";import o from"@contentful/f36-tokens";function s(n,i,a,e){Object.defineProperty(n,i,{get:a,set:e,enumerable:!0,configurable:!0})}s({},"Primitive",(()=>d));const g="div",d=i.forwardRef((function(a,e){const{as:l=g,testId:r,...o}=a,s={};for(const n in o)t(n)?s[n]=o[n]:console.warn("Invalid prop",n);return i.createElement(l,n({ref:e,"data-test-id":r},s,{as:void 0}))}));s({},"Flex",(()=>f));s({},"Box",(()=>c));const p={none:0,spacing2Xs:o.spacing2Xs,spacingXs:o.spacingXs,spacingS:o.spacingS,spacingM:o.spacingM,spacingL:o.spacingL,spacingXl:o.spacingXl,spacing2Xl:o.spacing2Xl,spacing3Xl:o.spacing3Xl,spacing4Xl:o.spacing4Xl};function m(n){return p[n]}const c=a((({display:i="block",children:a,className:t,...o},s)=>{return e(d,n({className:r(l({display:i,...(g=o,Object.assign({},g.margin?{margin:m(g.margin)}:null,g.marginLeft?{marginLeft:m(g.marginLeft)}:null,g.marginRight?{marginRight:m(g.marginRight)}:null,g.marginTop?{marginTop:m(g.marginTop)}:null,g.marginBottom?{marginBottom:m(g.marginBottom)}:null,g.padding?{padding:m(g.padding)}:null,g.paddingLeft?{paddingLeft:m(g.paddingLeft)}:null,g.paddingRight?{paddingRight:m(g.paddingRight)}:null,g.paddingTop?{paddingTop:m(g.paddingTop)}:null,g.paddingBottom?{paddingBottom:m(g.paddingBottom)}:null))},""),t)},o,{ref:s}),a);var g})),f=a((({isInline:i,alignItems:a,alignSelf:t,alignContent:o,flex:s,flexBasis:g,flexShrink:d,flexDirection:p,flexGrow:m,flexWrap:f,fullHeight:u,fullWidth:x,justifyContent:h,justifyItems:v,justifySelf:w,order:y,className:X,children:j,...B},G)=>e(c,n({as:"div",display:i?"inline-flex":"flex",className:r(l({width:x?"100%":void 0,height:u?"100%":void 0,flex:s,flexBasis:g,flexShrink:d,flexDirection:p,justifyContent:h,justifyItems:v,justifySelf:w,alignItems:a,alignSelf:t,alignContent:o,order:y,flexWrap:f,flexGrow:m},""),X)},B,{ref:G}),j)));var u={};s(u,"Grid",(()=>x)),s(u,"GridItem",(()=>h));const x=a((({alignContent:i,children:a,columnGap:t="spacingM",columns:o="auto",flow:s,isInline:g,justifyContent:d,rowGap:p="none",rows:f="auto",className:u,...x},h)=>{var v,w;const y=n=>"number"==typeof n?`repeat(${n}, minmax(0, 1fr))`:n;return e(c,n({as:"div",display:g?"inline-grid":"grid",className:r(l({gridTemplateColumns:y(o),gridTemplateRows:y(f),flow:s,justifyContent:d,alignContent:i,columnGap:null!=(v=m(t))?v:0,rowGap:null!=(w=m(p))?w:0},""),u)},x,{ref:h}),a)})),h=a((({children:i,columnStart:a,columnEnd:t,rowStart:o,rowEnd:s,area:g,order:d,className:p,...m},f)=>{const u=g||[o||"auto",a||"auto",s||"auto",t||"auto"].join(" / ");return e(c,n({as:"div",className:r(l({gridArea:u,order:d},""),p)},m,{ref:f}),i)}));export{d as Primitive,f as Flex,x as Grid,h as GridItem,c as Box};
//# sourceMappingURL=module.js.map
{
"name": "@contentful/f36-core",
"version": "4.0.1-next-v4-4528.2001+5925f0d4",
"version": "4.0.1-next-v4-4531.2002+529a1c05",
"description": "Forma 36 core",

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

"@babel/runtime": "^7.6.2",
"@contentful/f36-tokens": "4.0.1-next-v4-4528.2001+5925f0d4",
"@contentful/f36-tokens": "4.0.1-next-v4-4531.2002+529a1c05",
"@emotion/is-prop-valid": "^1.1.0",

@@ -36,3 +36,3 @@ "emotion": "^10.0.17"

},
"gitHead": "5925f0d432318f2e5ec58bf559995c1bc81350a4"
"gitHead": "529a1c056c757b4c8c9638bd9c01e0a244ce0aba"
}
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