New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

styled-css-grid

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-css-grid - npm Package Compare versions

Comparing version 0.11.2 to 1.0.0

2

dist/styled-css-grid.esm.js

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

function createCommonjsModule(e,n){return n={exports:{}},e(n,n.exports),n.exports}function makeEmptyFunction(e){return function(){return e}}function invariant(e,n,r,t,o,i,a,u){if(validateFormat(n),!e){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[r,t,o,i,a,u],p=0;(c=new Error(n.replace(/%s/g,function(){return s[p++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}function toObject(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},r=0;r<10;r++)n["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(e){return n[e]}).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}function checkPropTypes(e,n,r,t,o){if("production"!==process.env.NODE_ENV)for(var i in e)if(e.hasOwnProperty(i)){var a;try{invariant$1("function"==typeof e[i],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",t||"React class",r,i,_typeof(e[i])),a=e[i](n,i,t,r,null,ReactPropTypesSecret$1)}catch(e){a=e}if(warning$1(!a||a instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",t||"React class",r,i,void 0===a?"undefined":_typeof(a)),a instanceof Error&&!(a.message in loggedTypeFailures)){loggedTypeFailures[a.message]=!0;var u=o?o():"";warning$1(!1,"Failed %s type: %s%s",r,a.message,null!=u?u:"")}}}import styled from"styled-components";var emptyFunction=function(){};emptyFunction.thatReturns=makeEmptyFunction,emptyFunction.thatReturnsFalse=makeEmptyFunction(!1),emptyFunction.thatReturnsTrue=makeEmptyFunction(!0),emptyFunction.thatReturnsNull=makeEmptyFunction(null),emptyFunction.thatReturnsThis=function(){return this},emptyFunction.thatReturnsArgument=function(e){return e};var emptyFunction_1=emptyFunction,validateFormat=function(e){};"production"!==process.env.NODE_ENV&&(validateFormat=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")});var invariant_1=invariant,warning=emptyFunction_1;if("production"!==process.env.NODE_ENV){var printWarning=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),t=1;t<n;t++)r[t-1]=arguments[t];var o=0,i="Warning: "+e.replace(/%s/g,function(){return r[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};warning=function(e,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,t=Array(r>2?r-2:0),o=2;o<r;o++)t[o-2]=arguments[o];printWarning.apply(void 0,[n].concat(t))}}}var warning_1=warning,getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable,index$1=shouldUseNative()?Object.assign:function(e,n){for(var r,t,o=toObject(e),i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var a in r)hasOwnProperty.call(r,a)&&(o[a]=r[a]);if(getOwnPropertySymbols){t=getOwnPropertySymbols(r);for(var u=0;u<t.length;u++)propIsEnumerable.call(r,t[u])&&(o[t[u]]=r[t[u]])}}return o},ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret,_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("production"!==process.env.NODE_ENV)var invariant$1=invariant_1,warning$1=warning_1,ReactPropTypesSecret$1=ReactPropTypesSecret_1,loggedTypeFailures={};var checkPropTypes_1=checkPropTypes,factoryWithTypeCheckers=function(e,n){function r(e){var n=e&&(d&&e[d]||e[y]);if("function"==typeof n)return n}function t(e,n){return e===n?0!==e||1/e==1/n:e!==e&&n!==n}function o(e){this.message=e,this.stack=""}function i(e){function r(r,a,u,c,s,p,f){if(c=c||m,p=p||u,f!==ReactPropTypesSecret_1)if(n)invariant_1(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var l=c+":"+u;!t[l]&&i<3&&(warning_1(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",p,c),t[l]=!0,i++)}return null==a[u]?r?new o(null===a[u]?"The "+s+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`.":"The "+s+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,u,c,s,p)}if("production"!==process.env.NODE_ENV)var t={},i=0;var a=r.bind(null,!1);return a.isRequired=r.bind(null,!0),a}function a(e){return i(function(n,r,t,i,a,u){var c=n[r];return s(c)!==e?new o("Invalid "+i+" `"+a+"` of type `"+p(c)+"` supplied to `"+t+"`, expected `"+e+"`."):null})}function u(n){switch(void 0===n?"undefined":_typeof(n)){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(u);if(null===n||e(n))return!0;var t=r(n);if(!t)return!1;var o,i=t.call(n);if(t!==n.entries){for(;!(o=i.next()).done;)if(!u(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!u(a[1]))return!1}return!0;default:return!1}}function c(e,n){return"symbol"===e||("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}function s(e){var n=void 0===e?"undefined":_typeof(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":c(n,e)?"symbol":n}function p(e){if(void 0===e||null===e)return""+e;var n=s(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function f(e){var n=p(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}function l(e){return e.constructor&&e.constructor.name?e.constructor.name:m}var d="function"==typeof Symbol&&Symbol.iterator,y="@@iterator",m="<<anonymous>>",v={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:i(emptyFunction_1.thatReturnsNull),arrayOf:function(e){return i(function(n,r,t,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+t+"` has invalid PropType notation inside arrayOf.");var u=n[r];if(!Array.isArray(u))return new o("Invalid "+i+" `"+a+"` of type `"+s(u)+"` supplied to `"+t+"`, expected an array.");for(var c=0;c<u.length;c++){var p=e(u,c,t,i,a+"["+c+"]",ReactPropTypesSecret_1);if(p instanceof Error)return p}return null})},element:function(){return i(function(n,r,t,i,a){var u=n[r];return e(u)?null:new o("Invalid "+i+" `"+a+"` of type `"+s(u)+"` supplied to `"+t+"`, expected a single ReactElement.")})}(),instanceOf:function(e){return i(function(n,r,t,i,a){if(!(n[r]instanceof e)){var u=e.name||m;return new o("Invalid "+i+" `"+a+"` of type `"+l(n[r])+"` supplied to `"+t+"`, expected instance of `"+u+"`.")}return null})},node:function(){return i(function(e,n,r,t,i){return u(e[n])?null:new o("Invalid "+t+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})}(),objectOf:function(e){return i(function(n,r,t,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+t+"` has invalid PropType notation inside objectOf.");var u=n[r],c=s(u);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+t+"`, expected an object.");for(var p in u)if(u.hasOwnProperty(p)){var f=e(u,p,t,i,a+"."+p,ReactPropTypesSecret_1);if(f instanceof Error)return f}return null})},oneOf:function(e){return Array.isArray(e)?i(function(n,r,i,a,u){for(var c=n[r],s=0;s<e.length;s++)if(t(c,e[s]))return null;return new o("Invalid "+a+" `"+u+"` of value `"+c+"` supplied to `"+i+"`, expected one of "+JSON.stringify(e)+".")}):("production"!==process.env.NODE_ENV&&warning_1(!1,"Invalid argument supplied to oneOf, expected an instance of array."),emptyFunction_1.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&warning_1(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),emptyFunction_1.thatReturnsNull;for(var n=0;n<e.length;n++){var r=e[n];if("function"!=typeof r)return warning_1(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",f(r),n),emptyFunction_1.thatReturnsNull}return i(function(n,r,t,i,a){for(var u=0;u<e.length;u++)if(null==(0,e[u])(n,r,t,i,a,ReactPropTypesSecret_1))return null;return new o("Invalid "+i+" `"+a+"` supplied to `"+t+"`.")})},shape:function(e){return i(function(n,r,t,i,a){var u=n[r],c=s(u);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+t+"`, expected `object`.");for(var p in e){var f=e[p];if(f){var l=f(u,p,t,i,a+"."+p,ReactPropTypesSecret_1);if(l)return l}}return null})},exact:function(e){return i(function(n,r,t,i,a){var u=n[r],c=s(u);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+t+"`, expected `object`.");var p=index$1({},n[r],e);for(var f in p){var l=e[f];if(!l)return new o("Invalid "+i+" `"+a+"` key `"+f+"` supplied to `"+t+"`.\nBad object: "+JSON.stringify(n[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=l(u,f,t,i,a+"."+f,ReactPropTypesSecret_1);if(d)return d}return null})}};return o.prototype=Error.prototype,v.checkPropTypes=checkPropTypes_1,v.PropTypes=v,v},factoryWithThrowingShims=function(){function e(e,n,r,t,o,i){i!==ReactPropTypesSecret_1&&invariant_1(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function n(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n};return r.checkPropTypes=emptyFunction_1,r.PropTypes=r,r},index=createCommonjsModule(function(e){if("production"!==process.env.NODE_ENV){var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,r=function(e){return"object"===(void 0===e?"undefined":_typeof(e))&&null!==e&&e.$$typeof===n};e.exports=factoryWithTypeCheckers(r,!0)}else e.exports=factoryWithThrowingShims()}),Cell=styled.section.withConfig({displayName:"Cell__Cell"})(["height:100%;min-width:0;grid-column-end:",";grid-row-end:",";",";",";",";",";",";"],function(e){var n=e.width;return"span "+(void 0===n?1:n)},function(e){var n=e.height;return"span "+(void 0===n?1:n)},function(e){var n=e.left;return n&&"grid-column-start: "+n},function(e){var n=e.top;return n&&"grid-row-start: "+n},function(e){return e.center&&"text-align: center"},function(e){var n=e.area;return n&&"grid-area: "+n},function(e){return e.middle&&"\n display: inline-flex;\n flex-flow: column wrap;\n justify-content: center;\n justify-self: stretch;\n "});Cell.propTypes={className:index.string,width:index.number,height:index.number,top:index.oneOfType([index.number,index.string]),left:index.oneOfType([index.number,index.string]),middle:index.bool,center:index.bool,area:index.string};var autoRows=function(e){var n=e.minRowHeight;return"minmax("+(void 0===n?"20px":n)+", auto)"},frGetter=function(e){return"number"==typeof e?"repeat("+e+", 1fr)":e},gap=function(e){var n=e.gap,r=void 0===n?"8px":n;return r},flow=function(e){var n=e.flow,r=void 0===n?"row":n;return r},formatAreas=function(e){return e.map(function(e){return'"'+e+'"'}).join(" ")},Grid=styled.div.withConfig({displayName:"Grid__Grid"})(["display:grid;height:",";grid-auto-flow:",";grid-auto-rows:",";",";grid-template-columns:",";grid-gap:",";",";",";",";"],function(e){var n=e.height;return void 0===n?"auto":n},flow,autoRows,function(e){var n=e.rows;return n&&"grid-template-rows: "+frGetter(n)},function(e){var n=e.columns;return frGetter(void 0===n?12:n)},gap,function(e){var n=e.areas;return n&&"grid-template-areas: "+formatAreas(n)},function(e){var n=e.justifyContent;return n&&"justify-content: "+n},function(e){var n=e.alignContent;return n&&"align-content: "+n});Grid.propTypes={className:index.string,columns:index.oneOfType([index.string,index.number]),gap:index.string,height:index.string,minRowHeight:index.string,flow:index.string,rows:index.oneOfType([index.string,index.number]),areas:index.arrayOf(index.string),justifyContent:index.string,alignContent:index.string};export{Cell,Grid};
function createCommonjsModule(e,n){return n={exports:{}},e(n,n.exports),n.exports}function makeEmptyFunction(e){return function(){return e}}function invariant(e,n,r,t,o,i,a,u){if(validateFormat(n),!e){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[r,t,o,i,a,u],p=0;(c=new Error(n.replace(/%s/g,function(){return s[p++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}function toObject(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},r=0;r<10;r++)n["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(e){return n[e]}).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}function checkPropTypes(e,n,r,t,o){if("production"!==process.env.NODE_ENV)for(var i in e)if(e.hasOwnProperty(i)){var a;try{invariant$1("function"==typeof e[i],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",t||"React class",r,i,_typeof(e[i])),a=e[i](n,i,t,r,null,ReactPropTypesSecret$1)}catch(e){a=e}if(warning$1(!a||a instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",t||"React class",r,i,void 0===a?"undefined":_typeof(a)),a instanceof Error&&!(a.message in loggedTypeFailures)){loggedTypeFailures[a.message]=!0;var u=o?o():"";warning$1(!1,"Failed %s type: %s%s",r,a.message,null!=u?u:"")}}}import styled from"styled-components";var emptyFunction=function(){};emptyFunction.thatReturns=makeEmptyFunction,emptyFunction.thatReturnsFalse=makeEmptyFunction(!1),emptyFunction.thatReturnsTrue=makeEmptyFunction(!0),emptyFunction.thatReturnsNull=makeEmptyFunction(null),emptyFunction.thatReturnsThis=function(){return this},emptyFunction.thatReturnsArgument=function(e){return e};var emptyFunction_1=emptyFunction,validateFormat=function(e){};"production"!==process.env.NODE_ENV&&(validateFormat=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")});var invariant_1=invariant,warning=emptyFunction_1;if("production"!==process.env.NODE_ENV){var printWarning=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),t=1;t<n;t++)r[t-1]=arguments[t];var o=0,i="Warning: "+e.replace(/%s/g,function(){return r[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};warning=function(e,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,t=Array(r>2?r-2:0),o=2;o<r;o++)t[o-2]=arguments[o];printWarning.apply(void 0,[n].concat(t))}}}var warning_1=warning,getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable,index$1=shouldUseNative()?Object.assign:function(e,n){for(var r,t,o=toObject(e),i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var a in r)hasOwnProperty.call(r,a)&&(o[a]=r[a]);if(getOwnPropertySymbols){t=getOwnPropertySymbols(r);for(var u=0;u<t.length;u++)propIsEnumerable.call(r,t[u])&&(o[t[u]]=r[t[u]])}}return o},ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret,_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("production"!==process.env.NODE_ENV)var invariant$1=invariant_1,warning$1=warning_1,ReactPropTypesSecret$1=ReactPropTypesSecret_1,loggedTypeFailures={};var checkPropTypes_1=checkPropTypes,factoryWithTypeCheckers=function(e,n){function r(e){var n=e&&(d&&e[d]||e[y]);if("function"==typeof n)return n}function t(e,n){return e===n?0!==e||1/e==1/n:e!==e&&n!==n}function o(e){this.message=e,this.stack=""}function i(e){function r(r,a,u,c,s,p,f){if(c=c||m,p=p||u,f!==ReactPropTypesSecret_1)if(n)invariant_1(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var l=c+":"+u;!t[l]&&i<3&&(warning_1(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",p,c),t[l]=!0,i++)}return null==a[u]?r?new o(null===a[u]?"The "+s+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`.":"The "+s+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,u,c,s,p)}if("production"!==process.env.NODE_ENV)var t={},i=0;var a=r.bind(null,!1);return a.isRequired=r.bind(null,!0),a}function a(e){return i(function(n,r,t,i,a,u){var c=n[r];return s(c)!==e?new o("Invalid "+i+" `"+a+"` of type `"+p(c)+"` supplied to `"+t+"`, expected `"+e+"`."):null})}function u(n){switch(void 0===n?"undefined":_typeof(n)){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(u);if(null===n||e(n))return!0;var t=r(n);if(!t)return!1;var o,i=t.call(n);if(t!==n.entries){for(;!(o=i.next()).done;)if(!u(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!u(a[1]))return!1}return!0;default:return!1}}function c(e,n){return"symbol"===e||("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}function s(e){var n=void 0===e?"undefined":_typeof(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":c(n,e)?"symbol":n}function p(e){if(void 0===e||null===e)return""+e;var n=s(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function f(e){var n=p(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}function l(e){return e.constructor&&e.constructor.name?e.constructor.name:m}var d="function"==typeof Symbol&&Symbol.iterator,y="@@iterator",m="<<anonymous>>",v={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:i(emptyFunction_1.thatReturnsNull),arrayOf:function(e){return i(function(n,r,t,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+t+"` has invalid PropType notation inside arrayOf.");var u=n[r];if(!Array.isArray(u))return new o("Invalid "+i+" `"+a+"` of type `"+s(u)+"` supplied to `"+t+"`, expected an array.");for(var c=0;c<u.length;c++){var p=e(u,c,t,i,a+"["+c+"]",ReactPropTypesSecret_1);if(p instanceof Error)return p}return null})},element:function(){return i(function(n,r,t,i,a){var u=n[r];return e(u)?null:new o("Invalid "+i+" `"+a+"` of type `"+s(u)+"` supplied to `"+t+"`, expected a single ReactElement.")})}(),instanceOf:function(e){return i(function(n,r,t,i,a){if(!(n[r]instanceof e)){var u=e.name||m;return new o("Invalid "+i+" `"+a+"` of type `"+l(n[r])+"` supplied to `"+t+"`, expected instance of `"+u+"`.")}return null})},node:function(){return i(function(e,n,r,t,i){return u(e[n])?null:new o("Invalid "+t+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})}(),objectOf:function(e){return i(function(n,r,t,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+t+"` has invalid PropType notation inside objectOf.");var u=n[r],c=s(u);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+t+"`, expected an object.");for(var p in u)if(u.hasOwnProperty(p)){var f=e(u,p,t,i,a+"."+p,ReactPropTypesSecret_1);if(f instanceof Error)return f}return null})},oneOf:function(e){return Array.isArray(e)?i(function(n,r,i,a,u){for(var c=n[r],s=0;s<e.length;s++)if(t(c,e[s]))return null;return new o("Invalid "+a+" `"+u+"` of value `"+c+"` supplied to `"+i+"`, expected one of "+JSON.stringify(e)+".")}):("production"!==process.env.NODE_ENV&&warning_1(!1,"Invalid argument supplied to oneOf, expected an instance of array."),emptyFunction_1.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&warning_1(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),emptyFunction_1.thatReturnsNull;for(var n=0;n<e.length;n++){var r=e[n];if("function"!=typeof r)return warning_1(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",f(r),n),emptyFunction_1.thatReturnsNull}return i(function(n,r,t,i,a){for(var u=0;u<e.length;u++)if(null==(0,e[u])(n,r,t,i,a,ReactPropTypesSecret_1))return null;return new o("Invalid "+i+" `"+a+"` supplied to `"+t+"`.")})},shape:function(e){return i(function(n,r,t,i,a){var u=n[r],c=s(u);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+t+"`, expected `object`.");for(var p in e){var f=e[p];if(f){var l=f(u,p,t,i,a+"."+p,ReactPropTypesSecret_1);if(l)return l}}return null})},exact:function(e){return i(function(n,r,t,i,a){var u=n[r],c=s(u);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+t+"`, expected `object`.");var p=index$1({},n[r],e);for(var f in p){var l=e[f];if(!l)return new o("Invalid "+i+" `"+a+"` key `"+f+"` supplied to `"+t+"`.\nBad object: "+JSON.stringify(n[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=l(u,f,t,i,a+"."+f,ReactPropTypesSecret_1);if(d)return d}return null})}};return o.prototype=Error.prototype,v.checkPropTypes=checkPropTypes_1,v.PropTypes=v,v},factoryWithThrowingShims=function(){function e(e,n,r,t,o,i){i!==ReactPropTypesSecret_1&&invariant_1(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function n(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n};return r.checkPropTypes=emptyFunction_1,r.PropTypes=r,r},index=createCommonjsModule(function(e){if("production"!==process.env.NODE_ENV){var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,r=function(e){return"object"===(void 0===e?"undefined":_typeof(e))&&null!==e&&e.$$typeof===n};e.exports=factoryWithTypeCheckers(r,!0)}else e.exports=factoryWithThrowingShims()}),Cell=styled.div.withConfig({displayName:"Cell__Cell"})(["height:100%;min-width:0;grid-column-end:",";grid-row-end:",";",";",";",";",";",";"],function(e){var n=e.width;return"span "+(void 0===n?1:n)},function(e){var n=e.height;return"span "+(void 0===n?1:n)},function(e){var n=e.left;return n&&"grid-column-start: "+n},function(e){var n=e.top;return n&&"grid-row-start: "+n},function(e){return e.center&&"text-align: center"},function(e){var n=e.area;return n&&"grid-area: "+n},function(e){return e.middle&&"\n display: inline-flex;\n flex-flow: column wrap;\n justify-content: center;\n justify-self: stretch;\n "});Cell.propTypes={className:index.string,width:index.number,height:index.number,top:index.oneOfType([index.number,index.string]),left:index.oneOfType([index.number,index.string]),middle:index.bool,center:index.bool,area:index.string};var autoRows=function(e){var n=e.minRowHeight;return"minmax("+(void 0===n?"20px":n)+", auto)"},frGetter=function(e){return"number"==typeof e?"repeat("+e+", 1fr)":e},gap=function(e){var n=e.gap,r=void 0===n?"8px":n;return r},flow=function(e){var n=e.flow,r=void 0===n?"row":n;return r},formatAreas=function(e){return e.map(function(e){return'"'+e+'"'}).join(" ")},Grid=styled.div.withConfig({displayName:"Grid__Grid"})(["display:grid;height:",";grid-auto-flow:",";grid-auto-rows:",";",";grid-template-columns:",";grid-gap:",";",";",";",";"],function(e){var n=e.height;return void 0===n?"auto":n},flow,autoRows,function(e){var n=e.rows;return n&&"grid-template-rows: "+frGetter(n)},function(e){var n=e.columns;return frGetter(void 0===n?12:n)},gap,function(e){var n=e.areas;return n&&"grid-template-areas: "+formatAreas(n)},function(e){var n=e.justifyContent;return n&&"justify-content: "+n},function(e){var n=e.alignContent;return n&&"align-content: "+n});Grid.propTypes={className:index.string,columns:index.oneOfType([index.string,index.number]),gap:index.string,height:index.string,minRowHeight:index.string,flow:index.string,rows:index.oneOfType([index.string,index.number]),areas:index.arrayOf(index.string),justifyContent:index.string,alignContent:index.string};export{Cell,Grid};

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("styled-components")):"function"==typeof define&&define.amd?define(["exports","styled-components"],n):n(e.StyledCssGrid={},e.styled)}(this,function(e,n){"use strict";function r(e){return function(){return e}}function t(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}n=n&&n.hasOwnProperty("default")?n.default:n;var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e};var i=o,a=function(e){};"production"!==process.env.NODE_ENV&&(a=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")});var u=function(e,n,r,t,o,i,u,s){if(a(n),!e){var f;if(void 0===n)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,t,o,i,u,s],l=0;(f=new Error(n.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw f.framesToPop=1,f}},s=i;if("production"!==process.env.NODE_ENV){var f=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),t=1;t<n;t++)r[t-1]=arguments[t];var o=0,i="Warning: "+e.replace(/%s/g,function(){return r[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};s=function(e,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,t=Array(r>2?r-2:0),o=2;o<r;o++)t[o-2]=arguments[o];f.apply(void 0,[n].concat(t))}}}var c=s,l=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,y=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},r=0;r<10;r++)n["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(e){return n[e]}).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var r,o,i=t(e),a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var u in r)p.call(r,u)&&(i[u]=r[u]);if(l){o=l(r);for(var s=0;s<o.length;s++)d.call(r,o[s])&&(i[o[s]]=r[o[s]])}}return i},v="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("production"!==process.env.NODE_ENV)var g=u,h=c,b=v,O={};var w=function(e,n,r,t,o){if("production"!==process.env.NODE_ENV)for(var i in e)if(e.hasOwnProperty(i)){var a;try{g("function"==typeof e[i],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",t||"React class",r,i,m(e[i])),a=e[i](n,i,t,r,null,b)}catch(e){a=e}if(h(!a||a instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",t||"React class",r,i,void 0===a?"undefined":m(a)),a instanceof Error&&!(a.message in O)){O[a.message]=!0;var u=o?o():"";h(!1,"Failed %s type: %s%s",r,a.message,null!=u?u:"")}}},j=function(e,n){function r(e){var n=e&&(b&&e[b]||e[O]);if("function"==typeof n)return n}function t(e,n){return e===n?0!==e||1/e==1/n:e!==e&&n!==n}function o(e){this.message=e,this.stack=""}function a(e){function r(r,a,s,f,l,p,d){if(f=f||j,p=p||s,d!==v)if(n)u(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=f+":"+s;!t[y]&&i<3&&(c(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",p,f),t[y]=!0,i++)}return null==a[s]?r?new o(null===a[s]?"The "+l+" `"+p+"` is marked as required in `"+f+"`, but its value is `null`.":"The "+l+" `"+p+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(a,s,f,l,p)}if("production"!==process.env.NODE_ENV)var t={},i=0;var a=r.bind(null,!1);return a.isRequired=r.bind(null,!0),a}function s(e){return a(function(n,r,t,i,a,u){var s=n[r];return p(s)!==e?new o("Invalid "+i+" `"+a+"` of type `"+d(s)+"` supplied to `"+t+"`, expected `"+e+"`."):null})}function f(n){switch(void 0===n?"undefined":m(n)){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(f);if(null===n||e(n))return!0;var t=r(n);if(!t)return!1;var o,i=t.call(n);if(t!==n.entries){for(;!(o=i.next()).done;)if(!f(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!f(a[1]))return!1}return!0;default:return!1}}function l(e,n){return"symbol"===e||("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}function p(e){var n=void 0===e?"undefined":m(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":l(n,e)?"symbol":n}function d(e){if(void 0===e||null===e)return""+e;var n=p(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function g(e){var n=d(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}function h(e){return e.constructor&&e.constructor.name?e.constructor.name:j}var b="function"==typeof Symbol&&Symbol.iterator,O="@@iterator",j="<<anonymous>>",E={array:s("array"),bool:s("boolean"),func:s("function"),number:s("number"),object:s("object"),string:s("string"),symbol:s("symbol"),any:a(i.thatReturnsNull),arrayOf:function(e){return a(function(n,r,t,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+t+"` has invalid PropType notation inside arrayOf.");var u=n[r];if(!Array.isArray(u))return new o("Invalid "+i+" `"+a+"` of type `"+p(u)+"` supplied to `"+t+"`, expected an array.");for(var s=0;s<u.length;s++){var f=e(u,s,t,i,a+"["+s+"]",v);if(f instanceof Error)return f}return null})},element:function(){return a(function(n,r,t,i,a){var u=n[r];return e(u)?null:new o("Invalid "+i+" `"+a+"` of type `"+p(u)+"` supplied to `"+t+"`, expected a single ReactElement.")})}(),instanceOf:function(e){return a(function(n,r,t,i,a){if(!(n[r]instanceof e)){var u=e.name||j;return new o("Invalid "+i+" `"+a+"` of type `"+h(n[r])+"` supplied to `"+t+"`, expected instance of `"+u+"`.")}return null})},node:function(){return a(function(e,n,r,t,i){return f(e[n])?null:new o("Invalid "+t+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})}(),objectOf:function(e){return a(function(n,r,t,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+t+"` has invalid PropType notation inside objectOf.");var u=n[r],s=p(u);if("object"!==s)return new o("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+t+"`, expected an object.");for(var f in u)if(u.hasOwnProperty(f)){var c=e(u,f,t,i,a+"."+f,v);if(c instanceof Error)return c}return null})},oneOf:function(e){return Array.isArray(e)?a(function(n,r,i,a,u){for(var s=n[r],f=0;f<e.length;f++)if(t(s,e[f]))return null;return new o("Invalid "+a+" `"+u+"` of value `"+s+"` supplied to `"+i+"`, expected one of "+JSON.stringify(e)+".")}):("production"!==process.env.NODE_ENV&&c(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&c(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),i.thatReturnsNull;for(var n=0;n<e.length;n++){var r=e[n];if("function"!=typeof r)return c(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",g(r),n),i.thatReturnsNull}return a(function(n,r,t,i,a){for(var u=0;u<e.length;u++)if(null==(0,e[u])(n,r,t,i,a,v))return null;return new o("Invalid "+i+" `"+a+"` supplied to `"+t+"`.")})},shape:function(e){return a(function(n,r,t,i,a){var u=n[r],s=p(u);if("object"!==s)return new o("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+t+"`, expected `object`.");for(var f in e){var c=e[f];if(c){var l=c(u,f,t,i,a+"."+f,v);if(l)return l}}return null})},exact:function(e){return a(function(n,r,t,i,a){var u=n[r],s=p(u);if("object"!==s)return new o("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+t+"`, expected `object`.");var f=y({},n[r],e);for(var c in f){var l=e[c];if(!l)return new o("Invalid "+i+" `"+a+"` key `"+c+"` supplied to `"+t+"`.\nBad object: "+JSON.stringify(n[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=l(u,c,t,i,a+"."+c,v);if(d)return d}return null})}};return o.prototype=Error.prototype,E.checkPropTypes=w,E.PropTypes=E,E},E=function(){function e(e,n,r,t,o,i){i!==v&&u(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function n(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n};return r.checkPropTypes=i,r.PropTypes=r,r},x=function(e,n){return n={exports:{}},e(n,n.exports),n.exports}(function(e){if("production"!==process.env.NODE_ENV){var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,r=function(e){return"object"===(void 0===e?"undefined":m(e))&&null!==e&&e.$$typeof===n};e.exports=j(r,!0)}else e.exports=E()}),T=n.section.withConfig({displayName:"Cell__Cell"})(["height:100%;min-width:0;grid-column-end:",";grid-row-end:",";",";",";",";",";",";"],function(e){var n=e.width;return"span "+(void 0===n?1:n)},function(e){var n=e.height;return"span "+(void 0===n?1:n)},function(e){var n=e.left;return n&&"grid-column-start: "+n},function(e){var n=e.top;return n&&"grid-row-start: "+n},function(e){return e.center&&"text-align: center"},function(e){var n=e.area;return n&&"grid-area: "+n},function(e){return e.middle&&"\n display: inline-flex;\n flex-flow: column wrap;\n justify-content: center;\n justify-self: stretch;\n "});T.propTypes={className:x.string,width:x.number,height:x.number,top:x.oneOfType([x.number,x.string]),left:x.oneOfType([x.number,x.string]),middle:x.bool,center:x.bool,area:x.string};var N=function(e){return"number"==typeof e?"repeat("+e+", 1fr)":e},P=function(e){return e.map(function(e){return'"'+e+'"'}).join(" ")},R=n.div.withConfig({displayName:"Grid__Grid"})(["display:grid;height:",";grid-auto-flow:",";grid-auto-rows:",";",";grid-template-columns:",";grid-gap:",";",";",";",";"],function(e){var n=e.height;return void 0===n?"auto":n},function(e){var n=e.flow,r=void 0===n?"row":n;return r},function(e){var n=e.minRowHeight;return"minmax("+(void 0===n?"20px":n)+", auto)"},function(e){var n=e.rows;return n&&"grid-template-rows: "+N(n)},function(e){var n=e.columns;return N(void 0===n?12:n)},function(e){var n=e.gap,r=void 0===n?"8px":n;return r},function(e){var n=e.areas;return n&&"grid-template-areas: "+P(n)},function(e){var n=e.justifyContent;return n&&"justify-content: "+n},function(e){var n=e.alignContent;return n&&"align-content: "+n});R.propTypes={className:x.string,columns:x.oneOfType([x.string,x.number]),gap:x.string,height:x.string,minRowHeight:x.string,flow:x.string,rows:x.oneOfType([x.string,x.number]),areas:x.arrayOf(x.string),justifyContent:x.string,alignContent:x.string},e.Cell=T,e.Grid=R,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("styled-components")):"function"==typeof define&&define.amd?define(["exports","styled-components"],n):n(e.StyledCssGrid={},e.styled)}(this,function(e,n){"use strict";function r(e){return function(){return e}}function t(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}n=n&&n.hasOwnProperty("default")?n.default:n;var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e};var i=o,a=function(e){};"production"!==process.env.NODE_ENV&&(a=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")});var u=function(e,n,r,t,o,i,u,s){if(a(n),!e){var f;if(void 0===n)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,t,o,i,u,s],l=0;(f=new Error(n.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw f.framesToPop=1,f}},s=i;if("production"!==process.env.NODE_ENV){var f=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),t=1;t<n;t++)r[t-1]=arguments[t];var o=0,i="Warning: "+e.replace(/%s/g,function(){return r[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};s=function(e,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,t=Array(r>2?r-2:0),o=2;o<r;o++)t[o-2]=arguments[o];f.apply(void 0,[n].concat(t))}}}var c=s,l=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,y=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},r=0;r<10;r++)n["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(e){return n[e]}).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var r,o,i=t(e),a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var u in r)p.call(r,u)&&(i[u]=r[u]);if(l){o=l(r);for(var s=0;s<o.length;s++)d.call(r,o[s])&&(i[o[s]]=r[o[s]])}}return i},v="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("production"!==process.env.NODE_ENV)var g=u,h=c,b=v,O={};var w=function(e,n,r,t,o){if("production"!==process.env.NODE_ENV)for(var i in e)if(e.hasOwnProperty(i)){var a;try{g("function"==typeof e[i],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",t||"React class",r,i,m(e[i])),a=e[i](n,i,t,r,null,b)}catch(e){a=e}if(h(!a||a instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",t||"React class",r,i,void 0===a?"undefined":m(a)),a instanceof Error&&!(a.message in O)){O[a.message]=!0;var u=o?o():"";h(!1,"Failed %s type: %s%s",r,a.message,null!=u?u:"")}}},j=function(e,n){function r(e){var n=e&&(b&&e[b]||e[O]);if("function"==typeof n)return n}function t(e,n){return e===n?0!==e||1/e==1/n:e!==e&&n!==n}function o(e){this.message=e,this.stack=""}function a(e){function r(r,a,s,f,l,p,d){if(f=f||j,p=p||s,d!==v)if(n)u(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=f+":"+s;!t[y]&&i<3&&(c(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",p,f),t[y]=!0,i++)}return null==a[s]?r?new o(null===a[s]?"The "+l+" `"+p+"` is marked as required in `"+f+"`, but its value is `null`.":"The "+l+" `"+p+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(a,s,f,l,p)}if("production"!==process.env.NODE_ENV)var t={},i=0;var a=r.bind(null,!1);return a.isRequired=r.bind(null,!0),a}function s(e){return a(function(n,r,t,i,a,u){var s=n[r];return p(s)!==e?new o("Invalid "+i+" `"+a+"` of type `"+d(s)+"` supplied to `"+t+"`, expected `"+e+"`."):null})}function f(n){switch(void 0===n?"undefined":m(n)){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(f);if(null===n||e(n))return!0;var t=r(n);if(!t)return!1;var o,i=t.call(n);if(t!==n.entries){for(;!(o=i.next()).done;)if(!f(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!f(a[1]))return!1}return!0;default:return!1}}function l(e,n){return"symbol"===e||("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}function p(e){var n=void 0===e?"undefined":m(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":l(n,e)?"symbol":n}function d(e){if(void 0===e||null===e)return""+e;var n=p(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function g(e){var n=d(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}function h(e){return e.constructor&&e.constructor.name?e.constructor.name:j}var b="function"==typeof Symbol&&Symbol.iterator,O="@@iterator",j="<<anonymous>>",E={array:s("array"),bool:s("boolean"),func:s("function"),number:s("number"),object:s("object"),string:s("string"),symbol:s("symbol"),any:a(i.thatReturnsNull),arrayOf:function(e){return a(function(n,r,t,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+t+"` has invalid PropType notation inside arrayOf.");var u=n[r];if(!Array.isArray(u))return new o("Invalid "+i+" `"+a+"` of type `"+p(u)+"` supplied to `"+t+"`, expected an array.");for(var s=0;s<u.length;s++){var f=e(u,s,t,i,a+"["+s+"]",v);if(f instanceof Error)return f}return null})},element:function(){return a(function(n,r,t,i,a){var u=n[r];return e(u)?null:new o("Invalid "+i+" `"+a+"` of type `"+p(u)+"` supplied to `"+t+"`, expected a single ReactElement.")})}(),instanceOf:function(e){return a(function(n,r,t,i,a){if(!(n[r]instanceof e)){var u=e.name||j;return new o("Invalid "+i+" `"+a+"` of type `"+h(n[r])+"` supplied to `"+t+"`, expected instance of `"+u+"`.")}return null})},node:function(){return a(function(e,n,r,t,i){return f(e[n])?null:new o("Invalid "+t+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})}(),objectOf:function(e){return a(function(n,r,t,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+t+"` has invalid PropType notation inside objectOf.");var u=n[r],s=p(u);if("object"!==s)return new o("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+t+"`, expected an object.");for(var f in u)if(u.hasOwnProperty(f)){var c=e(u,f,t,i,a+"."+f,v);if(c instanceof Error)return c}return null})},oneOf:function(e){return Array.isArray(e)?a(function(n,r,i,a,u){for(var s=n[r],f=0;f<e.length;f++)if(t(s,e[f]))return null;return new o("Invalid "+a+" `"+u+"` of value `"+s+"` supplied to `"+i+"`, expected one of "+JSON.stringify(e)+".")}):("production"!==process.env.NODE_ENV&&c(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&c(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),i.thatReturnsNull;for(var n=0;n<e.length;n++){var r=e[n];if("function"!=typeof r)return c(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",g(r),n),i.thatReturnsNull}return a(function(n,r,t,i,a){for(var u=0;u<e.length;u++)if(null==(0,e[u])(n,r,t,i,a,v))return null;return new o("Invalid "+i+" `"+a+"` supplied to `"+t+"`.")})},shape:function(e){return a(function(n,r,t,i,a){var u=n[r],s=p(u);if("object"!==s)return new o("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+t+"`, expected `object`.");for(var f in e){var c=e[f];if(c){var l=c(u,f,t,i,a+"."+f,v);if(l)return l}}return null})},exact:function(e){return a(function(n,r,t,i,a){var u=n[r],s=p(u);if("object"!==s)return new o("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+t+"`, expected `object`.");var f=y({},n[r],e);for(var c in f){var l=e[c];if(!l)return new o("Invalid "+i+" `"+a+"` key `"+c+"` supplied to `"+t+"`.\nBad object: "+JSON.stringify(n[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=l(u,c,t,i,a+"."+c,v);if(d)return d}return null})}};return o.prototype=Error.prototype,E.checkPropTypes=w,E.PropTypes=E,E},E=function(){function e(e,n,r,t,o,i){i!==v&&u(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function n(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n};return r.checkPropTypes=i,r.PropTypes=r,r},x=function(e,n){return n={exports:{}},e(n,n.exports),n.exports}(function(e){if("production"!==process.env.NODE_ENV){var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,r=function(e){return"object"===(void 0===e?"undefined":m(e))&&null!==e&&e.$$typeof===n};e.exports=j(r,!0)}else e.exports=E()}),T=n.div.withConfig({displayName:"Cell__Cell"})(["height:100%;min-width:0;grid-column-end:",";grid-row-end:",";",";",";",";",";",";"],function(e){var n=e.width;return"span "+(void 0===n?1:n)},function(e){var n=e.height;return"span "+(void 0===n?1:n)},function(e){var n=e.left;return n&&"grid-column-start: "+n},function(e){var n=e.top;return n&&"grid-row-start: "+n},function(e){return e.center&&"text-align: center"},function(e){var n=e.area;return n&&"grid-area: "+n},function(e){return e.middle&&"\n display: inline-flex;\n flex-flow: column wrap;\n justify-content: center;\n justify-self: stretch;\n "});T.propTypes={className:x.string,width:x.number,height:x.number,top:x.oneOfType([x.number,x.string]),left:x.oneOfType([x.number,x.string]),middle:x.bool,center:x.bool,area:x.string};var N=function(e){return"number"==typeof e?"repeat("+e+", 1fr)":e},P=function(e){return e.map(function(e){return'"'+e+'"'}).join(" ")},R=n.div.withConfig({displayName:"Grid__Grid"})(["display:grid;height:",";grid-auto-flow:",";grid-auto-rows:",";",";grid-template-columns:",";grid-gap:",";",";",";",";"],function(e){var n=e.height;return void 0===n?"auto":n},function(e){var n=e.flow,r=void 0===n?"row":n;return r},function(e){var n=e.minRowHeight;return"minmax("+(void 0===n?"20px":n)+", auto)"},function(e){var n=e.rows;return n&&"grid-template-rows: "+N(n)},function(e){var n=e.columns;return N(void 0===n?12:n)},function(e){var n=e.gap,r=void 0===n?"8px":n;return r},function(e){var n=e.areas;return n&&"grid-template-areas: "+P(n)},function(e){var n=e.justifyContent;return n&&"justify-content: "+n},function(e){var n=e.alignContent;return n&&"align-content: "+n});R.propTypes={className:x.string,columns:x.oneOfType([x.string,x.number]),gap:x.string,height:x.string,minRowHeight:x.string,flow:x.string,rows:x.oneOfType([x.string,x.number]),areas:x.arrayOf(x.string),justifyContent:x.string,alignContent:x.string},e.Cell=T,e.Grid=R,Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "styled-css-grid",
"version": "0.11.2",
"version": "1.0.0",
"description": "A tiny CSS grid layout for React, built with styled-components",

@@ -5,0 +5,0 @@ "homepage": "https://styled-css-grid.js.org",

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