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

@contentful/f36-core

Package Overview
Dependencies
Maintainers
164
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.41.1 to 4.42.0

2

dist/esm/index.js

@@ -110,5 +110,5 @@ import * as _ from 'react';

${t};
`});var ye={none:0,spacing2Xs:P.spacing2Xs,spacingXs:P.spacingXs,spacingS:P.spacingS,spacingM:P.spacingM,spacingL:P.spacingL,spacingXl:P.spacingXl,spacing2Xl:P.spacing2Xl,spacing3Xl:P.spacing3Xl,spacing4Xl:P.spacing4Xl};function m(e){return ye[e]}function J(e){return Object.assign({},e.margin?{margin:m(e.margin)}:null,e.marginLeft?{marginLeft:m(e.marginLeft)}:null,e.marginRight?{marginRight:m(e.marginRight)}:null,e.marginTop?{marginTop:m(e.marginTop)}:null,e.marginBottom?{marginBottom:m(e.marginBottom)}:null,e.padding?{padding:m(e.padding)}:null,e.paddingLeft?{paddingLeft:m(e.paddingLeft)}:null,e.paddingRight?{paddingRight:m(e.paddingRight)}:null,e.paddingTop?{paddingTop:m(e.paddingTop)}:null,e.paddingBottom?{paddingBottom:m(e.paddingBottom)}:null)}var xe="div";function g(e){let E=e,{display:t,className:o,margin:r,marginBottom:s,marginLeft:p,marginRight:n,marginTop:l,padding:d,paddingBottom:f,paddingLeft:y,paddingRight:x,paddingTop:S,testId:R,as:h=xe}=E,T=c(E,["display","className","margin","marginBottom","marginLeft","marginRight","marginTop","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","testId","as"]);return {boxProps:i({className:cx(css$1({display:t}),css$1(i({},J({margin:r,marginBottom:s,marginLeft:p,marginRight:n,marginTop:l,padding:d,paddingBottom:f,paddingLeft:y,paddingRight:x,paddingTop:S}))),o),["data-test-id"]:R},T),Element:h}}function H(e,t){let{boxProps:o,Element:r}=g(e);return _.createElement(r,a(i({},o),{ref:t}),e.children)}H.displayName="Box";var q=_.forwardRef(H);var Re="div";function V(we,pe){var O=we,{isInline:e,alignItems:t,alignSelf:o,alignContent:r,flex:s,flexBasis:p,flexShrink:n,flexDirection:l,flexGrow:d,flexWrap:f,fullHeight:y,fullWidth:x,gap:S,justifyContent:R,justifyItems:h,justifySelf:T,order:b,children:E,as:I}=O,G=c(O,["isInline","alignItems","alignSelf","alignContent","flex","flexBasis","flexShrink","flexDirection","flexGrow","flexWrap","fullHeight","fullWidth","gap","justifyContent","justifyItems","justifySelf","order","children","as"]);var N;let{boxProps:U,Element:se}=g(a(i({},G),{as:I||Re}));return _.createElement(se,a(i({},U),{className:cx(css$1({display:e?"inline-flex":"flex",width:x?"100%":void 0,height:y?"100%":void 0,flex:s,flexBasis:p,flexShrink:n,flexDirection:l,gap:(N=P[S])!=null?N:S,justifyContent:R,justifyItems:h,justifySelf:T,alignItems:t,alignSelf:o,alignContent:r,order:b,flexWrap:f,flexGrow:d}),U.className),ref:pe}),E)}V.displayName="Flex";var k=_.forwardRef(V);var Te="div";function Q(S,x){var R=S,{alignContent:e,children:t,columnGap:o="spacingM",columns:r="auto",flow:s,isInline:p,justifyContent:n,rowGap:l="none",rows:d="auto",as:f}=R,y=c(R,["alignContent","children","columnGap","columns","flow","isInline","justifyContent","rowGap","rows","as"]);var E,I;let h=G=>typeof G=="number"?`repeat(${G}, minmax(0, 1fr))`:G,{boxProps:T,Element:b}=g(a(i({},y),{as:f||Te}));return _.createElement(b,a(i({},T),{className:cx(css$1({display:p?"inline-grid":"grid",gridTemplateColumns:h(r),gridTemplateRows:h(d),flow:s,justifyContent:n,alignContent:e,columnGap:(E=m(o))!=null?E:0,rowGap:(I=m(l))!=null?I:0}),T.className),ref:x}),t)}Q.displayName="Grid";var Y=_.forwardRef(Q);function Z(f,d){var y=f,{children:e,columnStart:t,columnEnd:o,rowStart:r,rowEnd:s,area:p,order:n}=y,l=c(y,["children","columnStart","columnEnd","rowStart","rowEnd","area","order"]);let x=p||[r||"auto",t||"auto",s||"auto",o||"auto"].join(" / "),{boxProps:S,Element:R}=g(l);return _.createElement(R,a(i({},S),{className:cx(css$1({gridArea:x,order:n}),S.className),ref:d}),e)}Z.displayName="GridItem";var w=_.forwardRef(Z);var M=Y;M.Item=w;var be="div";function ee(d,l){var f=d,{flexDirection:e="row",alignItems:t="center",isInline:o=!1,spacing:r="spacingM",children:s,as:p}=f,n=c(f,["flexDirection","alignItems","isInline","spacing","children","as"]);let{boxProps:y,Element:x}=g(a(i({},n),{as:p||be}));return _.createElement(k,a(i({},y),{as:x,flexDirection:e,alignItems:t,isInline:o,className:y.className,gap:r,ref:l}),s)}ee.displayName="Stack";var te=_.forwardRef(ee);function oe(){return {screenReaderOnly:css$1({position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",border:0})}}var re=p=>{var n=p,{children:e,className:t,testId:o="cf-ui-ScreenReaderOnly",as:r="div"}=n,s=c(n,["children","className","testId","as"]);let l=oe();return ___default.createElement(r,a(i({},s),{"data-test-id":o,className:cx(l.screenReaderOnly,t)}),e)};function ne(e,t){return useMemo(()=>e||[t||"id",Math.round(Math.random()*1e4)].join("_"),[])}function ae({isOpen:e,defaultIsOpen:t,onOpen:o,onClose:r}){let[s,p]=useState(t||!1),n=e!==void 0,l=n?e:s,d=useCallback(()=>{n||p(!1),r==null||r();},[n,r]),f=useCallback(()=>{n||p(!0),o==null||o();},[n,o]);return {isOpen:l,isControlled:n,handleClose:d,handleOpen:f}}function Be(...e){return t=>{e.forEach(o=>{typeof o=="function"?o(t):o!=null&&(o.current=t);});}}var Le=({status:e})=>{switch(e){case"published":return {color:P.colorGreenBase,backgroundColor:P.colorGreenLightest};case"changed":return {color:P.colorBlueBase,backgroundColor:P.colorBlueLightest};case"deleted":case"archived":return {color:P.colorRedBase,backgroundColor:P.colorRedLightest};case"draft":return {color:P.colorOrangeDark,backgroundColor:"#ffefd5"};case"new":return {color:P.colorWhite,backgroundColor:P.colorPrimary};default:return console.warn(`Unknown EntityStatus: ${e}`),{}}};
`});var ye={none:0,spacing2Xs:P.spacing2Xs,spacingXs:P.spacingXs,spacingS:P.spacingS,spacingM:P.spacingM,spacingL:P.spacingL,spacingXl:P.spacingXl,spacing2Xl:P.spacing2Xl,spacing3Xl:P.spacing3Xl,spacing4Xl:P.spacing4Xl};function m(e){return ye[e]}function J(e){return Object.assign({},e.margin?{margin:m(e.margin)}:null,e.marginLeft?{marginLeft:m(e.marginLeft)}:null,e.marginRight?{marginRight:m(e.marginRight)}:null,e.marginTop?{marginTop:m(e.marginTop)}:null,e.marginBottom?{marginBottom:m(e.marginBottom)}:null,e.padding?{padding:m(e.padding)}:null,e.paddingLeft?{paddingLeft:m(e.paddingLeft)}:null,e.paddingRight?{paddingRight:m(e.paddingRight)}:null,e.paddingTop?{paddingTop:m(e.paddingTop)}:null,e.paddingBottom?{paddingBottom:m(e.paddingBottom)}:null)}var xe="div";function g(e){let E=e,{display:t,className:o,margin:r,marginBottom:s,marginLeft:p,marginRight:n,marginTop:l,padding:d,paddingBottom:f,paddingLeft:y,paddingRight:x,paddingTop:S,testId:R,as:h=xe}=E,T=c(E,["display","className","margin","marginBottom","marginLeft","marginRight","marginTop","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","testId","as"]);return {boxProps:i({className:cx(css$1({display:t}),css$1(i({},J({margin:r,marginBottom:s,marginLeft:p,marginRight:n,marginTop:l,padding:d,paddingBottom:f,paddingLeft:y,paddingRight:x,paddingTop:S}))),o),["data-test-id"]:R},T),Element:h}}function H(e,t){let{boxProps:o,Element:r}=g(e);return _.createElement(r,a(i({},o),{ref:t}),e.children)}H.displayName="Box";var q=_.forwardRef(H);var Re="div";function V(we,pe){var O=we,{isInline:e,alignItems:t,alignSelf:o,alignContent:r,flex:s,flexBasis:p,flexShrink:n,flexDirection:l,flexGrow:d,flexWrap:f,fullHeight:y,fullWidth:x,gap:S,justifyContent:R,justifyItems:h,justifySelf:T,order:b,children:E,as:I}=O,G=c(O,["isInline","alignItems","alignSelf","alignContent","flex","flexBasis","flexShrink","flexDirection","flexGrow","flexWrap","fullHeight","fullWidth","gap","justifyContent","justifyItems","justifySelf","order","children","as"]);var N;let{boxProps:U,Element:se}=g(a(i({},G),{as:I||Re}));return _.createElement(se,a(i({},U),{className:cx(css$1({display:e?"inline-flex":"flex",width:x?"100%":void 0,height:y?"100%":void 0,flex:s,flexBasis:p,flexShrink:n,flexDirection:l,gap:(N=P[S])!=null?N:S,justifyContent:R,justifyItems:h,justifySelf:T,alignItems:t,alignSelf:o,alignContent:r,order:b,flexWrap:f,flexGrow:d}),U.className),ref:pe}),E)}V.displayName="Flex";var k=_.forwardRef(V);var Te="div";function Q(S,x){var R=S,{alignContent:e,children:t,columnGap:o="spacingM",columns:r="auto",flow:s,isInline:p,justifyContent:n,rowGap:l="none",rows:d="auto",as:f}=R,y=c(R,["alignContent","children","columnGap","columns","flow","isInline","justifyContent","rowGap","rows","as"]);var E,I;let h=G=>typeof G=="number"?`repeat(${G}, minmax(0, 1fr))`:G,{boxProps:T,Element:b}=g(a(i({},y),{as:f||Te}));return _.createElement(b,a(i({},T),{className:cx(css$1({display:p?"inline-grid":"grid",gridTemplateColumns:h(r),gridTemplateRows:h(d),flow:s,justifyContent:n,alignContent:e,columnGap:(E=m(o))!=null?E:0,rowGap:(I=m(l))!=null?I:0}),T.className),ref:x}),t)}Q.displayName="Grid";var Y=_.forwardRef(Q);function Z(f,d){var y=f,{children:e,columnStart:t,columnEnd:o,rowStart:r,rowEnd:s,area:p,order:n}=y,l=c(y,["children","columnStart","columnEnd","rowStart","rowEnd","area","order"]);let x=p||[r||"auto",t||"auto",s||"auto",o||"auto"].join(" / "),{boxProps:S,Element:R}=g(l);return _.createElement(R,a(i({},S),{className:cx(css$1({gridArea:x,order:n}),S.className),ref:d}),e)}Z.displayName="GridItem";var w=_.forwardRef(Z);var M=Y;M.Item=w;var be="div";function ee(d,l){var f=d,{flexDirection:e="row",alignItems:t="center",isInline:o=!1,spacing:r="spacingM",children:s,as:p}=f,n=c(f,["flexDirection","alignItems","isInline","spacing","children","as"]);let{boxProps:y,Element:x}=g(a(i({},n),{as:p||be}));return _.createElement(k,a(i({},y),{as:x,flexDirection:e,alignItems:t,isInline:o,className:y.className,gap:r,ref:l}),s)}ee.displayName="Stack";var te=_.forwardRef(ee);function oe(){return {screenReaderOnly:css$1({position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",border:0})}}var re=p=>{var n=p,{children:e,className:t,testId:o="cf-ui-ScreenReaderOnly",as:r="div"}=n,s=c(n,["children","className","testId","as"]);let l=oe();return ___default.createElement(r,a(i({},s),{"data-test-id":o,className:cx(l.screenReaderOnly,t)}),e)};function ne(e,t){return useMemo(()=>e||[t||"id",Math.round(Math.random()*1e4)].join("_"),[])}function ae({isOpen:e,defaultIsOpen:t,onOpen:o,onClose:r}){let[s,p]=useState(t||!1),n=e!==void 0,l=n?e:s,d=useCallback(()=>{n||p(!1),r==null||r();},[n,r]),f=useCallback(()=>{n||p(!0),o==null||o();},[n,o]);return {isOpen:l,isControlled:n,handleClose:d,handleOpen:f}}function Be(...e){return t=>{e.forEach(o=>{typeof o=="function"?o(t):o!=null&&(o.current=t);});}}var Le=({status:e})=>{switch(e){case"published":return {color:P.colorGreenBase,backgroundColor:P.colorGreenLightest};case"changed":return {color:P.colorBlueBase,backgroundColor:P.colorBlueLightest};case"deleted":case"archived":return {color:P.colorRedBase,backgroundColor:P.colorRedLightest};case"draft":return {color:P.colorOrangeDark,backgroundColor:"#ffefd5"};case"new":return {color:P.colorWhite,backgroundColor:P.blue500};default:return console.warn(`Unknown EntityStatus: ${e}`),{}}};
export { q as Box, k as Flex, W as GlobalStyles, M as Grid, w as GridItem, re as ScreenReaderOnly, te as Stack, Le as getEntityStatusStyles, Be as mergeRefs, g as useBox, ae as useControllableState, ne as useId };
//# sourceMappingURL=index.js.map

@@ -137,3 +137,3 @@ 'use strict';

${t};
`});var ye={none:0,spacing2Xs:P__default["default"].spacing2Xs,spacingXs:P__default["default"].spacingXs,spacingS:P__default["default"].spacingS,spacingM:P__default["default"].spacingM,spacingL:P__default["default"].spacingL,spacingXl:P__default["default"].spacingXl,spacing2Xl:P__default["default"].spacing2Xl,spacing3Xl:P__default["default"].spacing3Xl,spacing4Xl:P__default["default"].spacing4Xl};function m(e){return ye[e]}function J(e){return Object.assign({},e.margin?{margin:m(e.margin)}:null,e.marginLeft?{marginLeft:m(e.marginLeft)}:null,e.marginRight?{marginRight:m(e.marginRight)}:null,e.marginTop?{marginTop:m(e.marginTop)}:null,e.marginBottom?{marginBottom:m(e.marginBottom)}:null,e.padding?{padding:m(e.padding)}:null,e.paddingLeft?{paddingLeft:m(e.paddingLeft)}:null,e.paddingRight?{paddingRight:m(e.paddingRight)}:null,e.paddingTop?{paddingTop:m(e.paddingTop)}:null,e.paddingBottom?{paddingBottom:m(e.paddingBottom)}:null)}var xe="div";function g(e){let E=e,{display:t,className:o,margin:r,marginBottom:s,marginLeft:p,marginRight:n,marginTop:l,padding:d,paddingBottom:f,paddingLeft:y,paddingRight:x,paddingTop:S,testId:R,as:h=xe}=E,T=c(E,["display","className","margin","marginBottom","marginLeft","marginRight","marginTop","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","testId","as"]);return {boxProps:i({className:emotion.cx(emotion.css({display:t}),emotion.css(i({},J({margin:r,marginBottom:s,marginLeft:p,marginRight:n,marginTop:l,padding:d,paddingBottom:f,paddingLeft:y,paddingRight:x,paddingTop:S}))),o),["data-test-id"]:R},T),Element:h}}function H(e,t){let{boxProps:o,Element:r}=g(e);return ___namespace.createElement(r,a(i({},o),{ref:t}),e.children)}H.displayName="Box";var q=___namespace.forwardRef(H);var Re="div";function V(we,pe){var O=we,{isInline:e,alignItems:t,alignSelf:o,alignContent:r,flex:s,flexBasis:p,flexShrink:n,flexDirection:l,flexGrow:d,flexWrap:f,fullHeight:y,fullWidth:x,gap:S,justifyContent:R,justifyItems:h,justifySelf:T,order:b,children:E,as:I}=O,G=c(O,["isInline","alignItems","alignSelf","alignContent","flex","flexBasis","flexShrink","flexDirection","flexGrow","flexWrap","fullHeight","fullWidth","gap","justifyContent","justifyItems","justifySelf","order","children","as"]);var N;let{boxProps:U,Element:se}=g(a(i({},G),{as:I||Re}));return ___namespace.createElement(se,a(i({},U),{className:emotion.cx(emotion.css({display:e?"inline-flex":"flex",width:x?"100%":void 0,height:y?"100%":void 0,flex:s,flexBasis:p,flexShrink:n,flexDirection:l,gap:(N=P__default["default"][S])!=null?N:S,justifyContent:R,justifyItems:h,justifySelf:T,alignItems:t,alignSelf:o,alignContent:r,order:b,flexWrap:f,flexGrow:d}),U.className),ref:pe}),E)}V.displayName="Flex";var k=___namespace.forwardRef(V);var Te="div";function Q(S,x){var R=S,{alignContent:e,children:t,columnGap:o="spacingM",columns:r="auto",flow:s,isInline:p,justifyContent:n,rowGap:l="none",rows:d="auto",as:f}=R,y=c(R,["alignContent","children","columnGap","columns","flow","isInline","justifyContent","rowGap","rows","as"]);var E,I;let h=G=>typeof G=="number"?`repeat(${G}, minmax(0, 1fr))`:G,{boxProps:T,Element:b}=g(a(i({},y),{as:f||Te}));return ___namespace.createElement(b,a(i({},T),{className:emotion.cx(emotion.css({display:p?"inline-grid":"grid",gridTemplateColumns:h(r),gridTemplateRows:h(d),flow:s,justifyContent:n,alignContent:e,columnGap:(E=m(o))!=null?E:0,rowGap:(I=m(l))!=null?I:0}),T.className),ref:x}),t)}Q.displayName="Grid";var Y=___namespace.forwardRef(Q);function Z(f,d){var y=f,{children:e,columnStart:t,columnEnd:o,rowStart:r,rowEnd:s,area:p,order:n}=y,l=c(y,["children","columnStart","columnEnd","rowStart","rowEnd","area","order"]);let x=p||[r||"auto",t||"auto",s||"auto",o||"auto"].join(" / "),{boxProps:S,Element:R}=g(l);return ___namespace.createElement(R,a(i({},S),{className:emotion.cx(emotion.css({gridArea:x,order:n}),S.className),ref:d}),e)}Z.displayName="GridItem";var w=___namespace.forwardRef(Z);var M=Y;M.Item=w;var be="div";function ee(d,l){var f=d,{flexDirection:e="row",alignItems:t="center",isInline:o=!1,spacing:r="spacingM",children:s,as:p}=f,n=c(f,["flexDirection","alignItems","isInline","spacing","children","as"]);let{boxProps:y,Element:x}=g(a(i({},n),{as:p||be}));return ___namespace.createElement(k,a(i({},y),{as:x,flexDirection:e,alignItems:t,isInline:o,className:y.className,gap:r,ref:l}),s)}ee.displayName="Stack";var te=___namespace.forwardRef(ee);function oe(){return {screenReaderOnly:emotion.css({position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",border:0})}}var re=p=>{var n=p,{children:e,className:t,testId:o="cf-ui-ScreenReaderOnly",as:r="div"}=n,s=c(n,["children","className","testId","as"]);let l=oe();return ___default["default"].createElement(r,a(i({},s),{"data-test-id":o,className:emotion.cx(l.screenReaderOnly,t)}),e)};function ne(e,t){return _.useMemo(()=>e||[t||"id",Math.round(Math.random()*1e4)].join("_"),[])}function ae({isOpen:e,defaultIsOpen:t,onOpen:o,onClose:r}){let[s,p]=_.useState(t||!1),n=e!==void 0,l=n?e:s,d=_.useCallback(()=>{n||p(!1),r==null||r();},[n,r]),f=_.useCallback(()=>{n||p(!0),o==null||o();},[n,o]);return {isOpen:l,isControlled:n,handleClose:d,handleOpen:f}}function Be(...e){return t=>{e.forEach(o=>{typeof o=="function"?o(t):o!=null&&(o.current=t);});}}var Le=({status:e})=>{switch(e){case"published":return {color:P__default["default"].colorGreenBase,backgroundColor:P__default["default"].colorGreenLightest};case"changed":return {color:P__default["default"].colorBlueBase,backgroundColor:P__default["default"].colorBlueLightest};case"deleted":case"archived":return {color:P__default["default"].colorRedBase,backgroundColor:P__default["default"].colorRedLightest};case"draft":return {color:P__default["default"].colorOrangeDark,backgroundColor:"#ffefd5"};case"new":return {color:P__default["default"].colorWhite,backgroundColor:P__default["default"].colorPrimary};default:return console.warn(`Unknown EntityStatus: ${e}`),{}}};
`});var ye={none:0,spacing2Xs:P__default["default"].spacing2Xs,spacingXs:P__default["default"].spacingXs,spacingS:P__default["default"].spacingS,spacingM:P__default["default"].spacingM,spacingL:P__default["default"].spacingL,spacingXl:P__default["default"].spacingXl,spacing2Xl:P__default["default"].spacing2Xl,spacing3Xl:P__default["default"].spacing3Xl,spacing4Xl:P__default["default"].spacing4Xl};function m(e){return ye[e]}function J(e){return Object.assign({},e.margin?{margin:m(e.margin)}:null,e.marginLeft?{marginLeft:m(e.marginLeft)}:null,e.marginRight?{marginRight:m(e.marginRight)}:null,e.marginTop?{marginTop:m(e.marginTop)}:null,e.marginBottom?{marginBottom:m(e.marginBottom)}:null,e.padding?{padding:m(e.padding)}:null,e.paddingLeft?{paddingLeft:m(e.paddingLeft)}:null,e.paddingRight?{paddingRight:m(e.paddingRight)}:null,e.paddingTop?{paddingTop:m(e.paddingTop)}:null,e.paddingBottom?{paddingBottom:m(e.paddingBottom)}:null)}var xe="div";function g(e){let E=e,{display:t,className:o,margin:r,marginBottom:s,marginLeft:p,marginRight:n,marginTop:l,padding:d,paddingBottom:f,paddingLeft:y,paddingRight:x,paddingTop:S,testId:R,as:h=xe}=E,T=c(E,["display","className","margin","marginBottom","marginLeft","marginRight","marginTop","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","testId","as"]);return {boxProps:i({className:emotion.cx(emotion.css({display:t}),emotion.css(i({},J({margin:r,marginBottom:s,marginLeft:p,marginRight:n,marginTop:l,padding:d,paddingBottom:f,paddingLeft:y,paddingRight:x,paddingTop:S}))),o),["data-test-id"]:R},T),Element:h}}function H(e,t){let{boxProps:o,Element:r}=g(e);return ___namespace.createElement(r,a(i({},o),{ref:t}),e.children)}H.displayName="Box";var q=___namespace.forwardRef(H);var Re="div";function V(we,pe){var O=we,{isInline:e,alignItems:t,alignSelf:o,alignContent:r,flex:s,flexBasis:p,flexShrink:n,flexDirection:l,flexGrow:d,flexWrap:f,fullHeight:y,fullWidth:x,gap:S,justifyContent:R,justifyItems:h,justifySelf:T,order:b,children:E,as:I}=O,G=c(O,["isInline","alignItems","alignSelf","alignContent","flex","flexBasis","flexShrink","flexDirection","flexGrow","flexWrap","fullHeight","fullWidth","gap","justifyContent","justifyItems","justifySelf","order","children","as"]);var N;let{boxProps:U,Element:se}=g(a(i({},G),{as:I||Re}));return ___namespace.createElement(se,a(i({},U),{className:emotion.cx(emotion.css({display:e?"inline-flex":"flex",width:x?"100%":void 0,height:y?"100%":void 0,flex:s,flexBasis:p,flexShrink:n,flexDirection:l,gap:(N=P__default["default"][S])!=null?N:S,justifyContent:R,justifyItems:h,justifySelf:T,alignItems:t,alignSelf:o,alignContent:r,order:b,flexWrap:f,flexGrow:d}),U.className),ref:pe}),E)}V.displayName="Flex";var k=___namespace.forwardRef(V);var Te="div";function Q(S,x){var R=S,{alignContent:e,children:t,columnGap:o="spacingM",columns:r="auto",flow:s,isInline:p,justifyContent:n,rowGap:l="none",rows:d="auto",as:f}=R,y=c(R,["alignContent","children","columnGap","columns","flow","isInline","justifyContent","rowGap","rows","as"]);var E,I;let h=G=>typeof G=="number"?`repeat(${G}, minmax(0, 1fr))`:G,{boxProps:T,Element:b}=g(a(i({},y),{as:f||Te}));return ___namespace.createElement(b,a(i({},T),{className:emotion.cx(emotion.css({display:p?"inline-grid":"grid",gridTemplateColumns:h(r),gridTemplateRows:h(d),flow:s,justifyContent:n,alignContent:e,columnGap:(E=m(o))!=null?E:0,rowGap:(I=m(l))!=null?I:0}),T.className),ref:x}),t)}Q.displayName="Grid";var Y=___namespace.forwardRef(Q);function Z(f,d){var y=f,{children:e,columnStart:t,columnEnd:o,rowStart:r,rowEnd:s,area:p,order:n}=y,l=c(y,["children","columnStart","columnEnd","rowStart","rowEnd","area","order"]);let x=p||[r||"auto",t||"auto",s||"auto",o||"auto"].join(" / "),{boxProps:S,Element:R}=g(l);return ___namespace.createElement(R,a(i({},S),{className:emotion.cx(emotion.css({gridArea:x,order:n}),S.className),ref:d}),e)}Z.displayName="GridItem";var w=___namespace.forwardRef(Z);var M=Y;M.Item=w;var be="div";function ee(d,l){var f=d,{flexDirection:e="row",alignItems:t="center",isInline:o=!1,spacing:r="spacingM",children:s,as:p}=f,n=c(f,["flexDirection","alignItems","isInline","spacing","children","as"]);let{boxProps:y,Element:x}=g(a(i({},n),{as:p||be}));return ___namespace.createElement(k,a(i({},y),{as:x,flexDirection:e,alignItems:t,isInline:o,className:y.className,gap:r,ref:l}),s)}ee.displayName="Stack";var te=___namespace.forwardRef(ee);function oe(){return {screenReaderOnly:emotion.css({position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",border:0})}}var re=p=>{var n=p,{children:e,className:t,testId:o="cf-ui-ScreenReaderOnly",as:r="div"}=n,s=c(n,["children","className","testId","as"]);let l=oe();return ___default["default"].createElement(r,a(i({},s),{"data-test-id":o,className:emotion.cx(l.screenReaderOnly,t)}),e)};function ne(e,t){return _.useMemo(()=>e||[t||"id",Math.round(Math.random()*1e4)].join("_"),[])}function ae({isOpen:e,defaultIsOpen:t,onOpen:o,onClose:r}){let[s,p]=_.useState(t||!1),n=e!==void 0,l=n?e:s,d=_.useCallback(()=>{n||p(!1),r==null||r();},[n,r]),f=_.useCallback(()=>{n||p(!0),o==null||o();},[n,o]);return {isOpen:l,isControlled:n,handleClose:d,handleOpen:f}}function Be(...e){return t=>{e.forEach(o=>{typeof o=="function"?o(t):o!=null&&(o.current=t);});}}var Le=({status:e})=>{switch(e){case"published":return {color:P__default["default"].colorGreenBase,backgroundColor:P__default["default"].colorGreenLightest};case"changed":return {color:P__default["default"].colorBlueBase,backgroundColor:P__default["default"].colorBlueLightest};case"deleted":case"archived":return {color:P__default["default"].colorRedBase,backgroundColor:P__default["default"].colorRedLightest};case"draft":return {color:P__default["default"].colorOrangeDark,backgroundColor:"#ffefd5"};case"new":return {color:P__default["default"].colorWhite,backgroundColor:P__default["default"].blue500};default:return console.warn(`Unknown EntityStatus: ${e}`),{}}};

@@ -140,0 +140,0 @@ exports.Box = q;

{
"name": "@contentful/f36-core",
"version": "4.41.1",
"version": "4.42.0",
"description": "Forma 36 core",

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

"dependencies": {
"@contentful/f36-tokens": "^4.0.1",
"@contentful/f36-tokens": "^4.0.2",
"@emotion/core": "^10.1.1",

@@ -25,0 +25,0 @@ "@emotion/is-prop-valid": "^1.2.0",

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