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

react-layout-views

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-layout-views - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

typings/global.d.ts

2

native/index.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-native")):"function"==typeof define&&define.amd?define("react-layout-views",["react","react-native"],e):"object"==typeof exports?exports["react-layout-views"]=e(require("react"),require("react-native")):t["react-layout-views"]=e(t.react,t["react-native"])}(this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=21)}({0:function(e,n){e.exports=t},11:function(t,n){t.exports=e},21:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Layout",function(){return s}),n.d(e,"Section",function(){return p});var r=n(0),o=n.n(r),i=n(11),c=(n.n(i),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),u=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},a=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]]);return n},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.render=function(){var t=this.props,e=t.style,c=a(t,["style"]);return o.a.createElement(i.View,{style:[f(c),e]},o.a.createElement(i.View,{style:l(c)},r.Children.map(c.children,function(t){return t?n.i(r.cloneElement)(t,{parentProps:c}):null})))},e.defaultProps={spacing:0},e}(r.PureComponent),f=function(t){var e=t.grow;return u({},e?{flex:"number"==typeof e?e:1}:{})},l=function(t){var e=t.horizontal,n=t.spacing,r=t.grow,o=t.center,i=t.centerVertical,c=t.centerHorizontal,a=t.top,s=t.right,f=t.bottom,l=t.left;return u({flexDirection:e?"row":"column"},r?{flex:"number"==typeof r?r:1}:{},{margin:-n/2},e?u({},o?{alignItems:"center",justifyContent:"center"}:{},i?{alignItems:"center"}:{},c?{justifyContent:"center"}:{},a?{alignItems:"flex-start"}:{},s?{justifyContent:"flex-end"}:{},f?{alignItems:"flex-end"}:{},l?{justifyContent:"flex-start"}:{}):u({},o?{alignItems:"center",justifyContent:"center"}:{},i?{justifyContent:"center"}:{},c?{alignItems:"center"}:{},a?{justifyContent:"flex-start"}:{},s?{alignItems:"flex-end"}:{},f?{justifyContent:"flex-end"}:{},l?{alignItems:"flex-start"}:{}))},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.render=function(){var t=this.props,e=t.style,n=a(t,["style"]);return o.a.createElement(i.View,{style:y(n)},o.a.createElement(i.View,{style:[m(n),e]},n.children))},e}(r.PureComponent),y=function(t){var e=t.grow,n=t.parentProps.spacing;return u({padding:n/2},e?{flex:"number"==typeof e?e:1}:{})},m=function(t){var e=t.grow,n=t.center,r=t.centerVertical,o=t.centerHorizontal,i=t.top,c=t.right,a=t.bottom,s=t.left,f=t.parentProps;f.horizontal,f.spacing;return u({},e?{flex:"number"==typeof e?e:1}:{},n?{alignItems:"center",justifyContent:"center"}:{},r?{justifyContent:"center"}:{},o?{alignItems:"center"}:{},i?{justifyContent:"flex-start"}:{},c?{alignItems:"flex-end"}:{},a?{justifyContent:"flex-end"}:{},s?{alignItems:"flex-start"}:{})}}})});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-native")):"function"==typeof define&&define.amd?define("react-layout-views",["react","react-native"],e):"object"==typeof exports?exports["react-layout-views"]=e(require("react"),require("react-native")):t["react-layout-views"]=e(t.react,t["react-native"])}(this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=21)}({0:function(e,n){e.exports=t},11:function(t,n){t.exports=e},21:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Layout",function(){return f}),n.d(e,"Section",function(){return l});var r=n(0),o=(n.n(r),n(11)),i=(n.n(o),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),c=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},u=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]]);return n},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(){var t=this.props,e=t.style,i=u(t,["style"]);return r.createElement(o.View,{style:[s(i),e]},r.createElement(o.View,{style:a(i)},r.Children.map(i.children,function(t){return t?n.i(r.cloneElement)(t,{parentProps:i}):null})))},e.defaultProps={spacing:0},e}(r.PureComponent),s=function(t){var e=t.grow;return c({},e&&{flex:"number"==typeof e?e:1})},a=function(t){var e=t.horizontal,n=t.spacing,r=t.grow,o=t.center,i=t.centerVertical,u=t.centerHorizontal,f=t.top,s=t.right,a=t.bottom,l=t.left;return c({flexDirection:e?"row":"column"},r&&{flex:"number"==typeof r?r:1},{margin:-n/2},e?c({},o&&{alignItems:"center",justifyContent:"center"},i&&{alignItems:"center"},u&&{justifyContent:"center"},f&&{alignItems:"flex-start"},s&&{justifyContent:"flex-end"},a&&{alignItems:"flex-end"},l&&{justifyContent:"flex-start"}):c({},o&&{alignItems:"center",justifyContent:"center"},i&&{justifyContent:"center"},u&&{alignItems:"center"},f&&{justifyContent:"flex-start"},s&&{alignItems:"flex-end"},a&&{justifyContent:"flex-end"},l&&{alignItems:"flex-start"}))},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(){var t=this.props,e=t.style,n=u(t,["style"]);return r.createElement(o.View,{style:p(n)},r.createElement(o.View,{style:[y(n),e]},n.children))},e}(r.PureComponent),p=function(t){var e=t.grow,n=t.parentProps.spacing;return c({padding:n/2},e&&{flex:"number"==typeof e?e:1})},y=function(t){var e=t.grow,n=t.center,r=t.centerVertical,o=t.centerHorizontal,i=t.top,u=t.right,f=t.bottom,s=t.left;return c({},e&&{flex:"number"==typeof e?e:1},n&&{alignItems:"center",justifyContent:"center"},r&&{justifyContent:"center"},o&&{alignItems:"center"},i&&{justifyContent:"flex-start"},u&&{alignItems:"flex-end"},f&&{justifyContent:"flex-end"},s&&{alignItems:"flex-start"})}}})});
{
"name": "react-layout-views",
"version": "0.2.2",
"version": "0.2.3",
"main": "./web/index.js",

@@ -52,2 +52,2 @@ "types": "./web/index.d.ts",

]
}
}

@@ -5,3 +5,3 @@ import { ViewProperties } from 'react-native'

grow?: boolean | number
spacing?: number
spacing: number
horizontal?: boolean

@@ -18,3 +18,3 @@ center?: boolean

interface SectionProps extends ViewProperties {
parentProps?: LayoutProps
parentProps: LayoutProps
grow?: boolean | number

@@ -21,0 +21,0 @@ center?: boolean

@@ -7,3 +7,3 @@ import { StyledProps } from 'styled-components'

spacing?: string
spacingInfo?: {
spacingInfo: {
value: number

@@ -24,3 +24,3 @@ unit: string

interface SectionProps extends HtmlHTMLAttributes<any> {
parentProps?: LayoutProps
parentProps: LayoutProps
styleString?: string

@@ -27,0 +27,0 @@ grow?: boolean | number

/// <reference types="react" />
import React, { PureComponent } from 'react';
import * as React from 'react';
import { PureComponent } from 'react';
import { StyledComponentClass } from 'styled-components';

@@ -4,0 +5,0 @@ import { LayoutProps, SectionProps } from '../typings/web';

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

!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("css-length"),require("styled-components")):"function"==typeof define&&define.amd?define("react-layout-views",["react","css-length","styled-components"],t):"object"==typeof exports?exports["react-layout-views"]=t(require("react"),require("css-length"),require("styled-components")):n["react-layout-views"]=t(n.react,n["css-length"],n["styled-components"])}(this,function(n,t,e){return function(n){function t(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var e={};return t.m=n,t.c=e,t.i=function(n){return n},t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=22)}([function(t,e){t.exports=n},function(n,t){"use exports";n.exports={animation:1,"column-count":1,columns:1,"font-weight":1,opacity:1,"order ":1,"z-index":1,zoom:1,flex:1,"box-flex":1,transform:1,perspective:1,"box-pack":1,"box-align":1,colspan:1,rowspan:1}},function(n,t,e){"use strict";var r=Object.prototype.hasOwnProperty;n.exports=function(n,t){return r.call(n,t)}},function(n,t,e){"use strict";var r=e(7),i=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,o="undefined"==typeof document?{}:document.documentElement.style,s=function(){var n=function(){for(var n in o)if(i.test(n))return n.match(i)[0];return"WebkitOpacity"in o?"Webkit":"KhtmlOpacity"in o?"Khtml":""}();return{style:n,css:"-"+n.toLowerCase()+"-",dom:{Webkit:"WebKit",ms:"MS",o:"WebKit"}[n]||r(n)}}();n.exports=s},function(n,t){n.exports={"border-radius":1,"border-top-left-radius":1,"border-top-right-radius":1,"border-bottom-left-radius":1,"border-bottom-right-radius":1,"box-shadow":1,order:1,flex:function(n,t){return[t+"box-flex"]},"box-flex":1,"box-align":1,animation:1,"animation-duration":1,"animation-name":1,transition:1,"transition-duration":1,transform:1,"transform-style":1,"transform-origin":1,"backface-visibility":1,perspective:1,"box-pack":1}},function(n,t,e){"use strict";var r=function(n,t){return t?t.toUpperCase():""},i=e(17);n.exports=function(n){return n?n.replace(i,r):""}},function(n,t,e){"use strict";var r=e(18);n.exports=function(n){return r(n).toLowerCase()}},function(n,t,e){"use strict";n.exports=function(n){return n.length?n.charAt(0).toUpperCase()+n.substring(1):n}},function(n,t,e){"use strict";var r=(e(3),e(13)),i=e(6),o=e(5),s=e(2),c=e(15),u=e(14),a=function(n,t,e,i){r(t).forEach(function(t){n[i?i(t):t]=e})},l=function(n){n=(n||"").split(";");var t={};return n.forEach(function(n){var e=n.split(":");2==e.length&&(t[e[0].trim()]=e[1].trim())}),t},f={cssUnitless:e(1)},p=function(n,t,e,r){"string"==typeof n&&(n=l(n)),t=t||f,t.cssUnitless=t.cssUnitless||f.cssUnitless,r=r||{};var d,y,x,m,g,b,h,v,j=t.scope||{},O=null!=t.addUnits?t.addUnits:!j||null==j.addUnits||j.addUnits,w=(null!=t.cssUnitless?t.cssUnitless:j?j.cssUnitless:null)||{},_=(t.cssUnit||j?j.cssUnit:null)||"px",P=t.prefixProperties||(j?j.prefixProperties:null)||{},S=t.camelize,U=S?o:i;for(x in n)if(s(n,x)){if(m=n[x],y=i(e?e+x:x),d=!1,v=!1,u(m)&&(h=m.call(j||n,m,x,y,n),c(h)&&null!=h.value?(m=h.value,v=h.prefix,y=h.name?i(h.name):y):m=h),g=typeof m,b="number"==g||"string"==g&&""!=m&&1*m==m,null==m||null==y||""===y)continue;if((b||"string"==g)&&(d=!0),!d&&null!=m.value&&m.prefix&&(d=!0,v=m.prefix,m=m.value),d){if(v=v||!!P[y],b&&(m=!O||y in w?m+"":m+_),"border"!=y&&(y.indexOf("border")||~y.indexOf("radius")||~y.indexOf("width"))||!b||(y+="-width"),!y.indexOf("border-radius-")&&(y.replace(/border(-radius)(-(.*))/,function(n,t,e){var r={"-top":["-top-left","-top-right"],"-left":["-top-left","-bottom-left"],"-right":["-top-right","-bottom-right"],"-bottom":["-bottom-left","-bottom-right"]};e in r?(y=[],r[e].forEach(function(n){y.push("border"+n+t)})):y="border"+e+t}),Array.isArray(y))){y.forEach(function(n){v?a(r,n,m,U):r[U(n)]=m});continue}v?a(r,y,m,U):r[U(y)]=m}else p(m,t,y+"-",r)}return r};n.exports=p},function(n,t,e){"use strict";n.exports={prefixProperties:e(4),cssUnitless:e(1),object:e(8),string:e(20)}},function(n,e){n.exports=t},,function(n,t){n.exports=e},function(n,t,e){n.exports=e(16)()},function(n,t,e){"use strict";var r=Object.prototype.toString;n.exports=function(n){return"[object Function]"===r.apply(n)}},function(n,t,e){"use strict";var r=Object.prototype.toString;n.exports=function(n){return!!n&&"[object Object]"===r.call(n)}},function(n,t,e){"use strict";var r=e(5),i=e(6),o=e(19),s=e(7),c=e(3),u=e(4),a="undefined"==typeof document?{}:document.documentElement.style;n.exports=function(n){return function(t,e){e=e||{};var l=o(r(t)),f=i(t),p=n?l:f,d=c.style?n?c.style:c.css:"";if(l in a)return e.asString?p:[p];var y=p,x=u[f],m=[];if(n&&(y=s(p)),"function"==typeof x){var g=x(p,d)||[];g&&!Array.isArray(g)&&(g=[g]),g.length&&(g=g.map(function(t){return n?o(r(t)):i(t)})),m=m.concat(g)}return d&&m.push(d+y),m.push(p),e.asString||1==m.length?m[0]:m}}},function(n,t){n.exports=/[-\s]+(.)?/g},function(n,t,e){"use strict";var r=/::/g,i=/([A-Z]+)([A-Z][a-z])/g,o=/([a-z\d])([A-Z])/g,s=/_/g;n.exports=function(n,t){return n?n.replace(r,"/").replace(i,"$1_$2").replace(o,"$1_$2").replace(s,t||"-"):""}},function(n,t,e){"use strict";n.exports=function(n){return n.length?n.charAt(0).toLowerCase()+n.substring(1):n}},function(n,t,e){"use strict";var r=e(8),i=e(2);n.exports=function(n,t){n=r(n,t);var e,o=[];for(e in n)i(n,e)&&o.push(e+": "+n[e]);return o.join("; ")}},,function(n,t,e){"use strict";function r(){return function(n){return n}}Object.defineProperty(t,"__esModule",{value:!0}),e.d(t,"Layout",function(){return P}),e.d(t,"Section",function(){return z}),e.d(t,"SectionWrapper",function(){return A}),e.d(t,"SectionInner",function(){return E});var i,o,s,c,u,a,l,f,p,d,y=e(0),x=e.n(y),m=e(12),g=e.n(m),b=e(10),h=e.n(b),v=e(9),j=(e.n(v),this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}()),O=this&&this.__makeTemplateObject||function(n,t){return Object.defineProperty?Object.defineProperty(n,"raw",{value:t}):n.raw=t,n},w=this&&this.__assign||Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},_=this&&this.__rest||function(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)t.indexOf(r[i])<0&&(e[r[i]]=n[r[i]]);return e},P=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return j(t,n),t.prototype.render=function(){var n=this.props,t=n.style,r=n.spacing,i=_(n,["style","spacing"]),o=e.i(v.string)(t),s=new h.a(r),c=w({},i,{spacingInfo:s,styleString:o});return x.a.createElement(S,w({},c),x.a.createElement(U,w({},c),y.Children.map(i.children,function(n){return n?e.i(y.cloneElement)(n,{parentProps:c}):null})))},t.defaultProps={spacing:"0px"},t}(y.PureComponent),S=r()(g.a.div)(o||(o=O(["\n ","\n"],["\n ","\n"])),function(n){var t=n.grow,r=n.horizontal,o=n.styleString;return e.i(m.css)(i||(i=O(["\n overflow: hidden;\n ","\n ","\n ","\n ","\n "],["\n overflow: hidden;\n ","\n ","\n ","\n ","\n "])),(t||r)&&"display: flex;",t&&"flex: "+("number"==typeof t?t:1)+";",t&&"align-self: stretch;",o)}),U=r()(g.a.div)(a||(a=O(["\n ","\n"],["\n ","\n"])),function(n){var t=n.horizontal,r=n.spacingInfo,i=n.grow,o=n.center,a=n.centerVertical,l=n.centerHorizontal,f=n.top,p=n.right,d=n.bottom,y=n.left;return e.i(m.css)(u||(u=O(["\n display: flex;\n ","\n ","\n ","\n flex-direction: ",";\n margin: ",";\n ","\n "],["\n display: flex;\n ","\n ","\n ","\n flex-direction: ",";\n margin: ",";\n ","\n "])),(i||t)&&"display: flex;",(i||t)&&"flex: 1;",(i||t)&&"align-self: stretch;",t?"row":"column",(-r.value/2).toString()+r.unit,t?e.i(m.css)(s||(s=O(["\n ","\n "," \n "," \n ","\n ","\n ","\n ","\n "],["\n ","\n "," \n "," \n ","\n ","\n ","\n ","\n "])),o&&"align-items: center; justify-content: center;",a&&"align-items: center;",l&&"justify-content: center;",f&&"align-items: flex-start;",p&&"justify-content: flex-end;",d&&"align-items: flex-end;",y&&"justify-content: flex-start;"):e.i(m.css)(c||(c=O(["\n ","\n "," \n "," \n ","\n ","\n ","\n ","\n "],["\n ","\n "," \n "," \n ","\n ","\n ","\n ","\n "])),o&&"align-items: center; justify-content: center;",a&&"justify-content: center;",l&&"align-items: center;",f&&"justify-content: flex-start;",p&&"align-items: flex-end;",d&&"justify-content: flex-end;",y&&"align-items: flex-start;"))}),z=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return j(t,n),t.prototype.render=function(){var n=this.props,t=n.style,r=_(n,["style"]),i=e.i(v.string)(t);return x.a.createElement(A,w({},r),x.a.createElement(E,w({},r,{styleString:i}),r.children))},t}(y.PureComponent),A=r()(g.a.div)(f||(f=O(["\n ","\n"],["\n ","\n"])),function(n){var t=n.grow,r=(n.center,n.centerVertical,n.centerHorizontal,n.top,n.right,n.bottom,n.left,n.parentProps),i=(r.horizontal,r.spacingInfo);return e.i(m.css)(l||(l=O(["\n display: flex;\n flex-direction: column;\n padding: ",";\n ","\n "],["\n display: flex;\n flex-direction: column;\n padding: ",";\n ","\n "])),(i.value/2).toString()+i.unit,t&&"flex: "+("number"==typeof t?t:1)+";")}),E=r()(g.a.div)(d||(d=O(["\n ","\n"],["\n ","\n"])),function(n){var t=n.grow,r=n.center,i=n.centerVertical,o=n.centerHorizontal,s=n.top,c=n.right,u=n.bottom,a=n.left,l=n.styleString;return e.i(m.css)(p||(p=O(["\n display: flex;\n flex-direction: column;\n ","\n ","\n "," \n "," \n ","\n ","\n ","\n ","\n ","\n ",";\n "],["\n display: flex;\n flex-direction: column;\n ","\n ","\n "," \n "," \n ","\n ","\n ","\n ","\n ","\n ",";\n "])),t&&"flex: "+("number"==typeof t?t:1)+";",r&&"align-items: center; justify-content: center;",i&&"justify-content: center;",o&&"align-items: center;",r&&"align-items: center; justify-content: center;",s&&"justify-content: flex-start;",c&&"align-items: flex-end;",u&&"justify-content: flex-end;",a&&"align-items: flex-start;",l)})}])});
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("css-length"),require("styled-components")):"function"==typeof define&&define.amd?define("react-layout-views",["react","css-length","styled-components"],t):"object"==typeof exports?exports["react-layout-views"]=t(require("react"),require("css-length"),require("styled-components")):n["react-layout-views"]=t(n.react,n["css-length"],n["styled-components"])}(this,function(n,t,e){return function(n){function t(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var e={};return t.m=n,t.c=e,t.i=function(n){return n},t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=22)}([function(t,e){t.exports=n},function(n,t){"use exports";n.exports={animation:1,"column-count":1,columns:1,"font-weight":1,opacity:1,"order ":1,"z-index":1,zoom:1,flex:1,"box-flex":1,transform:1,perspective:1,"box-pack":1,"box-align":1,colspan:1,rowspan:1}},function(n,t,e){"use strict";var r=Object.prototype.hasOwnProperty;n.exports=function(n,t){return r.call(n,t)}},function(n,t,e){"use strict";var r=e(7),i=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,o="undefined"==typeof document?{}:document.documentElement.style,s=function(){var n=function(){for(var n in o)if(i.test(n))return n.match(i)[0];return"WebkitOpacity"in o?"Webkit":"KhtmlOpacity"in o?"Khtml":""}();return{style:n,css:"-"+n.toLowerCase()+"-",dom:{Webkit:"WebKit",ms:"MS",o:"WebKit"}[n]||r(n)}}();n.exports=s},function(n,t){n.exports={"border-radius":1,"border-top-left-radius":1,"border-top-right-radius":1,"border-bottom-left-radius":1,"border-bottom-right-radius":1,"box-shadow":1,order:1,flex:function(n,t){return[t+"box-flex"]},"box-flex":1,"box-align":1,animation:1,"animation-duration":1,"animation-name":1,transition:1,"transition-duration":1,transform:1,"transform-style":1,"transform-origin":1,"backface-visibility":1,perspective:1,"box-pack":1}},function(n,t,e){"use strict";var r=function(n,t){return t?t.toUpperCase():""},i=e(17);n.exports=function(n){return n?n.replace(i,r):""}},function(n,t,e){"use strict";var r=e(18);n.exports=function(n){return r(n).toLowerCase()}},function(n,t,e){"use strict";n.exports=function(n){return n.length?n.charAt(0).toUpperCase()+n.substring(1):n}},function(n,t,e){"use strict";var r=(e(3),e(13)),i=e(6),o=e(5),s=e(2),c=e(15),u=e(14),l=function(n,t,e,i){r(t).forEach(function(t){n[i?i(t):t]=e})},a=function(n){n=(n||"").split(";");var t={};return n.forEach(function(n){var e=n.split(":");2==e.length&&(t[e[0].trim()]=e[1].trim())}),t},f={cssUnitless:e(1)},p=function(n,t,e,r){"string"==typeof n&&(n=a(n)),t=t||f,t.cssUnitless=t.cssUnitless||f.cssUnitless,r=r||{};var d,y,x,m,g,b,h,v,j=t.scope||{},O=null!=t.addUnits?t.addUnits:!j||null==j.addUnits||j.addUnits,w=(null!=t.cssUnitless?t.cssUnitless:j?j.cssUnitless:null)||{},_=(t.cssUnit||j?j.cssUnit:null)||"px",P=t.prefixProperties||(j?j.prefixProperties:null)||{},S=t.camelize,U=S?o:i;for(x in n)if(s(n,x)){if(m=n[x],y=i(e?e+x:x),d=!1,v=!1,u(m)&&(h=m.call(j||n,m,x,y,n),c(h)&&null!=h.value?(m=h.value,v=h.prefix,y=h.name?i(h.name):y):m=h),g=typeof m,b="number"==g||"string"==g&&""!=m&&1*m==m,null==m||null==y||""===y)continue;if((b||"string"==g)&&(d=!0),!d&&null!=m.value&&m.prefix&&(d=!0,v=m.prefix,m=m.value),d){if(v=v||!!P[y],b&&(m=!O||y in w?m+"":m+_),"border"!=y&&(y.indexOf("border")||~y.indexOf("radius")||~y.indexOf("width"))||!b||(y+="-width"),!y.indexOf("border-radius-")&&(y.replace(/border(-radius)(-(.*))/,function(n,t,e){var r={"-top":["-top-left","-top-right"],"-left":["-top-left","-bottom-left"],"-right":["-top-right","-bottom-right"],"-bottom":["-bottom-left","-bottom-right"]};e in r?(y=[],r[e].forEach(function(n){y.push("border"+n+t)})):y="border"+e+t}),Array.isArray(y))){y.forEach(function(n){v?l(r,n,m,U):r[U(n)]=m});continue}v?l(r,y,m,U):r[U(y)]=m}else p(m,t,y+"-",r)}return r};n.exports=p},function(n,t,e){"use strict";n.exports={prefixProperties:e(4),cssUnitless:e(1),object:e(8),string:e(20)}},function(n,e){n.exports=t},,function(n,t){n.exports=e},function(n,t,e){n.exports=e(16)()},function(n,t,e){"use strict";var r=Object.prototype.toString;n.exports=function(n){return"[object Function]"===r.apply(n)}},function(n,t,e){"use strict";var r=Object.prototype.toString;n.exports=function(n){return!!n&&"[object Object]"===r.call(n)}},function(n,t,e){"use strict";var r=e(5),i=e(6),o=e(19),s=e(7),c=e(3),u=e(4),l="undefined"==typeof document?{}:document.documentElement.style;n.exports=function(n){return function(t,e){e=e||{};var a=o(r(t)),f=i(t),p=n?a:f,d=c.style?n?c.style:c.css:"";if(a in l)return e.asString?p:[p];var y=p,x=u[f],m=[];if(n&&(y=s(p)),"function"==typeof x){var g=x(p,d)||[];g&&!Array.isArray(g)&&(g=[g]),g.length&&(g=g.map(function(t){return n?o(r(t)):i(t)})),m=m.concat(g)}return d&&m.push(d+y),m.push(p),e.asString||1==m.length?m[0]:m}}},function(n,t){n.exports=/[-\s]+(.)?/g},function(n,t,e){"use strict";var r=/::/g,i=/([A-Z]+)([A-Z][a-z])/g,o=/([a-z\d])([A-Z])/g,s=/_/g;n.exports=function(n,t){return n?n.replace(r,"/").replace(i,"$1_$2").replace(o,"$1_$2").replace(s,t||"-"):""}},function(n,t,e){"use strict";n.exports=function(n){return n.length?n.charAt(0).toLowerCase()+n.substring(1):n}},function(n,t,e){"use strict";var r=e(8),i=e(2);n.exports=function(n,t){n=r(n,t);var e,o=[];for(e in n)i(n,e)&&o.push(e+": "+n[e]);return o.join("; ")}},,function(n,t,e){"use strict";function r(){return function(n){return n}}Object.defineProperty(t,"__esModule",{value:!0}),e.d(t,"Layout",function(){return _}),e.d(t,"Section",function(){return U}),e.d(t,"SectionWrapper",function(){return z}),e.d(t,"SectionInner",function(){return A});var i,o,s,c,u,l,a,f,p,d,y=e(0),x=(e.n(y),e(12)),m=e.n(x),g=e(10),b=(e.n(g),e(9)),h=(e.n(b),this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])};return function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}()),v=this&&this.__makeTemplateObject||function(n,t){return Object.defineProperty?Object.defineProperty(n,"raw",{value:t}):n.raw=t,n},j=this&&this.__assign||Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},O=this&&this.__rest||function(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)t.indexOf(r[i])<0&&(e[r[i]]=n[r[i]]);return e},w=function(n,t){return n?t||"":""},_=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return h(t,n),t.prototype.render=function(){var n=this.props,t=n.style,r=n.spacing,i=O(n,["style","spacing"]),o=e.i(b.string)(t),s=new g(r),c=j({},i,{spacingInfo:s,styleString:o});return y.createElement(P,j({},c),y.createElement(S,j({},c),y.Children.map(i.children,function(n){return n?e.i(y.cloneElement)(n,{parentProps:c}):null})))},t.defaultProps={spacing:"0px"},t}(y.PureComponent),P=r()(m.a.div)(o||(o=v(["\n ","\n"],["\n ","\n"])),function(n){var t=n.grow,r=n.horizontal,o=n.styleString;return e.i(x.css)(i||(i=v(["\n overflow: hidden;\n ","\n ","\n ","\n ","\n "],["\n overflow: hidden;\n ","\n ","\n ","\n ","\n "])),w(t||r,"display: flex;"),w(t,"flex: "+("number"==typeof t?t:1)+";"),w(t,"align-self: stretch;"),w(o,o))}),S=r()(m.a.div)(l||(l=v(["\n ","\n"],["\n ","\n"])),function(n){var t=n.horizontal,r=n.spacingInfo,i=n.grow,o=n.center,l=n.centerVertical,a=n.centerHorizontal,f=n.top,p=n.right,d=n.bottom,y=n.left;return e.i(x.css)(u||(u=v(["\n display: flex;\n ","\n ","\n ","\n flex-direction: ",";\n margin: ",";\n ","\n "],["\n display: flex;\n ","\n ","\n ","\n flex-direction: ",";\n margin: ",";\n ","\n "])),w(i||t,"display: flex;"),w(i||t,"flex: 1;"),w(i||t,"align-self: stretch;"),t?"row":"column",(-r.value/2).toString()+r.unit,t?e.i(x.css)(s||(s=v(["\n ","\n "," \n "," \n ","\n ","\n ","\n ","\n "],["\n ","\n "," \n "," \n ","\n ","\n ","\n ","\n "])),w(o,"align-items: center; justify-content: center;"),w(l,"align-items: center;"),w(a,"justify-content: center;"),w(f,"align-items: flex-start;"),w(p,"justify-content: flex-end;"),w(d,"align-items: flex-end;"),w(y,"justify-content: flex-start;")):e.i(x.css)(c||(c=v(["\n ","\n "," \n "," \n ","\n ","\n ","\n ","\n "],["\n ","\n "," \n "," \n ","\n ","\n ","\n ","\n "])),w(o,"align-items: center; justify-content: center;"),w(l,"justify-content: center;"),w(a,"align-items: center;"),w(f,"justify-content: flex-start;"),w(p,"align-items: flex-end;"),w(d,"justify-content: flex-end;"),w(y,"align-items: flex-start;")))}),U=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return h(t,n),t.prototype.render=function(){var n=this.props,t=n.style,r=O(n,["style"]),i=e.i(b.string)(t);return y.createElement(z,j({},r),y.createElement(A,j({},r,{styleString:i}),r.children))},t}(y.PureComponent),z=r()(m.a.div)(f||(f=v(["\n ","\n"],["\n ","\n"])),function(n){var t=n.grow,r=(n.center,n.centerVertical,n.centerHorizontal,n.top,n.right,n.bottom,n.left,n.parentProps.spacingInfo);return e.i(x.css)(a||(a=v(["\n display: flex;\n flex-direction: column;\n padding: ",";\n ","\n "],["\n display: flex;\n flex-direction: column;\n padding: ",";\n ","\n "])),(r.value/2).toString()+r.unit,w(t,"flex: "+("number"==typeof t?t:1)+";"))}),A=r()(m.a.div)(d||(d=v(["\n ","\n"],["\n ","\n"])),function(n){var t=n.grow,r=n.center,i=n.centerVertical,o=n.centerHorizontal,s=n.top,c=n.right,u=n.bottom,l=n.left,a=n.styleString;return e.i(x.css)(p||(p=v(["\n display: flex;\n flex-direction: column;\n ","\n ","\n "," \n "," \n ","\n ","\n ","\n ","\n ","\n ","\n "],["\n display: flex;\n flex-direction: column;\n ","\n ","\n "," \n "," \n ","\n ","\n ","\n ","\n ","\n ","\n "])),w(t,"flex: "+("number"==typeof t?t:1)+";"),w(r,"align-items: center; justify-content: center;"),w(i,"justify-content: center;"),w(o,"align-items: center;"),w(r,"align-items: center; justify-content: center;"),w(s,"justify-content: flex-start;"),w(c,"align-items: flex-end;"),w(u,"justify-content: flex-end;"),w(l,"align-items: flex-start;"),w(a,a))})}])});
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