UNPKG

@platform/react.ssr

Version:

A lightweight SSR (server-side-rendering) system for react apps bundled with ParcelJS and hosted on S3.

1 lines 1.95 kB
{"id":"NvtQ","dependencies":[{"name":"/Users/phil/code/@platform/code/react.ssr/sample/ui/.uiharness/package.json","includedInParent":true,"mtime":1567548362275},{"name":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/@platform/react/package.json","includedInParent":true,"mtime":1567477054000},{"name":"tslib","loc":{"line":3,"column":22},"parent":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/@platform/react/lib/components/Foo/Foo.js","resolved":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/tslib/tslib.es6.js"},{"name":"react","loc":{"line":4,"column":20},"parent":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/@platform/react/lib/components/Foo/Foo.js","resolved":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/react/index.js"},{"name":"../../common","loc":{"line":5,"column":23},"parent":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/@platform/react/lib/components/Foo/Foo.js","resolved":"/Users/phil/code/@platform/code/react.ssr/sample/ui/node_modules/@platform/react/lib/common/index.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0});var o=require(\"tslib\"),e=require(\"react\"),i=require(\"../../common\");exports.Foo=function(r){var t=r.children,n=r.background,d=void 0===n||n,a=r.padding,s=void 0===a?8:a,c=r.block,h=void 0===c||c,l=r.width,u=r.height,m=r.minWidth,g=r.minHeight,b=r.maxWidth,p=r.maxHeight,k=r.style,v=r.onClick,x=r.onMouseDown,f=r.onMouseUp,M={backgroundColor:i.color.format(d),display:h?\"block\":\"inline-block\",padding:s,borderRadius:3,fontSize:14,border:\"dashed 1px \"+i.color.format(-.1),width:l,height:u,minWidth:m,minHeight:g,maxWidth:b,maxHeight:p};return e.createElement(\"div\",o.__assign({},i.css(M,k),{onClick:v,onMouseDown:x,onMouseUp:f}),t)};"},"sourceMaps":null,"error":null,"hash":"7f6d317ea539dc7e9c73e7632ba8f83b","cacheData":{"env":{}}}