1 line
1.6 KiB
JavaScript
1 line
1.6 KiB
JavaScript
"use strict";(function(){var p,r,e,t=function(p,r){function e(){this.constructor=p}for(var t in r)o.call(r,t)&&(p[t]=r[t]);return e.prototype=r.prototype,p.prototype=new e,p.__super__=r.prototype,p},o={}.hasOwnProperty;r=require("react"),e=require("reactcss"),p=function(p){function o(){return o.__super__.constructor.apply(this,arguments)}return t(o,p),o.propTypes={background:r.PropTypes.string,zDepth:r.PropTypes.oneOf(["0","1","2","3","4","5",0,1,2,3,4,5]),radius:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.number])},o.defaultProps={background:"#fff",zDepth:"1",radius:"2px"},o.prototype.render=function(){var p;return p=e["default"]({"default":{wrap:{position:"relative"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+this.props.zDepth+"px "+4*this.props.zDepth+"px rgba(0,0,0,.24)",borderRadius:this.props.radius,background:this.props.background}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}},full:{wrap:{width:"100%"}}},this.props),r.createElement("div",{style:p.wrap},r.createElement("div",{style:p.bg}),r.createElement("div",{style:p.content},this.props.children))},o}(r.Component),module.exports=p}).call(void 0); |