Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-16 01:51:36 +00:00
parent a4605e311a
commit 58905d02c2
28599 changed files with 2179074 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
module.exports = {
Container: require('./src/components/Container'),
Grid: require('./src/components/Grid'),
};

View File

@@ -0,0 +1,2 @@
module.exports = require('./src/components/Docs');

View File

@@ -0,0 +1,3 @@
export Raised from './lib/components/Raised';
export Tabs from './lib/components/Tabs';
export Tile from './lib/components/Tile';

View File

@@ -0,0 +1 @@
"use strict";(function(){var t,e,r,n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function r(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},o={}.hasOwnProperty;e=require("react"),r=require("reactcss"),module.exports=t=function(t){function o(){return this.handleClick=n(this.handleClick,this),o.__super__.constructor.apply(this,arguments)}return i(o,t),o.defaultProps={color:"dark"},o.prototype.handleClick=function(t){var e,r,n,i;return e=Math.round(t.clientX-t.currentTarget.getBoundingClientRect().left),i=Math.round(t.clientY-t.currentTarget.getBoundingClientRect().top),n=Math.max(t.currentTarget.clientWidth,t.currentTarget.clientHeight),r=this.refs.ripple,r.style.left=e,r.style.top=i,r.style.width=2*n,r.style.height=2*n,r.style.transform="translate(-50%, -50%) scale(1)",r.style.opacity="0",setTimeout(function(t){return function(){return r.style.transform="translate(-50%, -50%) scale(0)",setTimeout(function(){return r.style.opacity=1},400)}}(this),400)},o.prototype.render=function(){var t;return t=r["default"]({"default":{ink:{position:"relative",cursor:"pointer",overflow:"hidden"},ripple:{position:"absolute",width:"10px",height:"10px",transform:"translate(-50%, -50%) scale(0)",transition:"transform 400ms cubic-bezier(.55,0,.3,1), opacity 200ms 200ms linear",borderRadius:"50%",opacity:"1"}},"color-dark":{ripple:{background:"rgba(0,0,0,.1)"}},"color-light":{ripple:{background:"rgba(255,255,255,.15)"}}},this.props),e.createElement("div",{style:t.ink,onClick:this.handleClick},e.createElement("div",{style:t.ripple,ref:"ripple"}),this.props.children)},o}(e.Component)}).call(void 0);

View File

@@ -0,0 +1 @@
"use strict";(function(){var t,e,o,n=function(t,e){return function(){return t.apply(e,arguments)}},r=function(t,e){function o(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype,t},i={}.hasOwnProperty;e=require("react"),o=require("lodash/isString"),module.exports=t=function(t){function i(){return this.handleClick=n(this.handleClick,this),i.__super__.constructor.apply(this,arguments)}return r(i,t),i.propExamples={onClick:{type:"oneOfType",like:["http://some.url/"]},newTab:{type:"bool",like:[!0,!1]}},i.defaultProps={newTab:!1},i.prototype.handleClick=function(t){var e;return"function"==typeof(e=this.props).onClick?e.onClick(t,this.props.callbackValue):void 0},i.prototype.render=function(){return o(this.props.onClick)?e.createElement("a",{style:{textDecoration:"none"},href:this.props.onClick,target:this.props.newTab?"_blank":void 0},this.props.children):e.createElement("a",{style:{textDecoration:"none"},onClick:this.handleClick},this.props.children)},i}(e.Component)}).call(void 0);

View File

@@ -0,0 +1 @@
"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);

View File

@@ -0,0 +1 @@
"use strict";(function(){var t,e,r,o,n=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function r(){this.constructor=t}for(var o in e)p.call(e,o)&&(t[o]=e[o]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},p={}.hasOwnProperty;t=require("react"),o=require("reactcss"),r={primaryColor:"#2196F3",accentColor:"#E91E63",theme:"light"},e=function(e){function r(){return this.handleClick=n(this.handleClick,this),r.__super__.constructor.apply(this,arguments)}return i(r,e),r.prototype.css=o.inline,r.propTypes={selected:t.PropTypes.bool},r.defaultProps={selected:!1,color:"#fff"},r.prototype.classes=function(){return{"default":{tab:{color:this.props.color,cursor:"pointer",paddingLeft:"12px",paddingRight:"12px",height:"48px",lineHeight:"48px",textAlign:"center",fontSize:"14px",textTransform:"uppercase",fontWeight:"500",whiteSpace:"nowrap",opacity:".47",transition:"opacity 100ms linear"}},"public":{tab:{}},selected:{tab:{opacity:".87"}}}},r.prototype.styles=function(){return this.css()},r.prototype.handleClick=function(){if(this.props.selectable!==!1)return this.props.onClick(this.props.tab)},r.prototype.render=function(){return t.createElement("div",{is:"tab",onClick:this.handleClick},this.props.children)},r}(t.Component),module.exports=e}).call(void 0);

View File

@@ -0,0 +1 @@
"use strict";(function(){var t,e,r,o,n,a,s,l,i=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function r(){this.constructor=t}for(var o in e)p.call(e,o)&&(t[o]=e[o]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},p={}.hasOwnProperty;r=require("react"),s=require("reactcss"),l=require("lodash/isString"),o=require("./Tab"),e=require("./Link"),t=require("./Ink"),a={primaryColor:"#2196F3",accentColor:"#E91E63",theme:"light"},n=function(n){function p(t){this.handleClick=i(this.handleClick,this);var e;p.__super__.constructor.call(this,t),this.state={selectedTab:this.props.selectedTab<(null!=(e=this.props.tabs)?e.length:void 0)?this.props.selectedTab:0}}return c(p,n),p.prototype.css=s.inline,p.propTypes={tabs:r.PropTypes.array,align:r.PropTypes.oneOf(["none","justify","left","center"]),children:r.PropTypes.array,background:r.PropTypes.string},p.propExamples={tabs:{type:"array",like:[[{label:"cool",callback:function(){return console.log("cool")}},{label:"tabs",callback:function(){return console.log("tabs")}}],["cool","tabs"],["foo","bar","longer"],["foo","bar","way longer","even","still"]]},align:{type:"oneOf",like:["none","justify","left","center"]},background:{type:"string",like:["transparent","#4A90E2"]},color:{type:"string",like:["#fff","#FFEB3B"]}},p.defaultProps={selectedTab:0,background:"transparent",color:"#fff"},p.prototype.classes=function(){var t;return{"default":{tabs:{position:"relative",background:this.props.background},tabWrap:{display:"flex"},tab:{justifyContent:"flex-start",minWidth:"68px",maxWidth:"240px"},Tab:{color:this.props.color},indicator:{height:"2px",position:"absolute",bottom:"0",left:"0",background:this.props.color,transition:"all 200ms linear, transform 100ms 300ms linear",transform:"translateY(2px)"}},scrollable:{tabs:{overflowX:"scroll"},tabWrap:{paddingLeft:"60px",justifyContent:"flex-start",width:"400%"},tab:{width:"auto"}},"align-justify":{tabWrap:{justifyContent:"space-between"},tab:{width:100/(null!=(t=this.props.tabs)?t.length:void 0)+"%"}},"align-left":{tabWrap:{paddingLeft:"60px",justifyContent:"flex-start"},tab:{width:"auto"}},"align-center":{tabWrap:{justifyContent:"center"},tab:{width:"auto"}}}},p.prototype.styles=function(){var t;return this.css({scrollable:this.props.width/(null!=(t=this.props.tabs)?t.length:void 0)<72})},p.prototype.handleClick=function(t){return this.setState({selectedTab:t})},p.prototype.slide=function(){var t,e,r,o,n,a;return e=this.refs.tabs,t=e.scrollLeft,r=e.offsetWidth+e.scrollLeft,n=this.refs["tab-"+this.state.selectedTab],o=n.getBoundingClientRect().left-e.getBoundingClientRect().left+e.scrollLeft,a=o+n.offsetWidth,a>r&&(e.scrollLeft+=a-r),o<t&&(e.scrollLeft-=t-o),this.refs.indicator.style.left=o,this.refs.indicator.style.width=n.offsetWidth,this.refs.indicator.style.webkitTransform="translateY(0)",this.refs.indicator.style.transform="translateY(0)"},p.prototype.componentDidMount=function(){return this.slide()},p.prototype.componentWillUpdate=function(t,e){var r,o;if(e.selectedTab>=(null!=(r=t.tabs)?r.length:void 0))return e.selectedTab=(null!=(o=t.tabs)?o.length:void 0)-1},p.prototype.componentDidUpdate=function(){return this.slide()},p.prototype.render=function(){var n,s,i,c,p,f;return r.createElement("div",{is:"tabs",ref:"tabs"},r.createElement("div",{is:"tabWrap",className:"flexbox-fix"},function(){var u,b,d,h;for(d=this.props.tabs,h=[],i=u=0,b=d.length;u<b;i=++u)f=d[i],l(f)?(c=f,n=null):(c=f.label,n=f.onClick,s=f.callbackValue,p=f.newTab),h.push(r.createElement("div",{is:"tab",ref:"tab-"+i,key:i},r.createElement(t,{color:a.theme},r.createElement(e,{onClick:n,callbackValue:s,newTab:p},r.createElement(o,{is:"Tab",tab:i,selected:this.state.selectedTab===i,selectable:f.selectable,onClick:this.handleClick},c)))));return h}.call(this)),r.createElement("div",{is:"indicator",ref:"indicator"}))},p}(r.Component),module.exports=n}).call(void 0);

View File

@@ -0,0 +1 @@
"use strict";(function(){var e,t,i,n=function(e,t){return function(){return e.apply(t,arguments)}},r=function(e,t){function i(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},o={}.hasOwnProperty,l=[].slice;e=require("react"),i=require("reactcss"),t=function(t){function o(){return this.handleControlsClick=n(this.handleControlsClick,this),this.handleClick=n(this.handleClick,this),o.__super__.constructor.apply(this,arguments)}return r(o,t),o.prototype.handleClick=function(e){if(null!=this.props.onClick)return this.props.onClick(e)},o.prototype.handleControlsClick=function(e){if(null!=this.props.onClick)return this.props.onClick(e,this.props.children)},o.prototype.render=function(){var t,n,r,o,s,c;return c=i["default"]({"default":{tile:{fontSize:"16px",padding:"16px",display:"flex",justifyContent:"space-between",color:this.props.color},primary:{display:"flex",width:"100%"},sidebar:{minWidth:"56px",maxWidth:"56px",flexBasis:"56"},content:{background:"none",flex:"1",maxWidth:"95%"},secondary:{flexBasis:"42",textAlign:"center"},sidebarIcon:{marginTop:"-12px",marginLeft:"-12px",marginBottom:"-12px"}},clickable:{tile:{cursor:"pointer"}},divider:{tile:{boxShadow:"inset 0 -1px 0 rgba(0,0,0,.12)"}},condensed:{tile:{paddingBottom:"0",paddingTop:"0"},sidebar:{minWidth:"28px",maxWidth:"28px",flexBasis:"28"}},"left-pad":{tile:{paddingLeft:"0"}}},{clickable:null!=this.props.onClick},this.props),e.createElement("div",{style:c.tile,onClick:this.props.controls?this.handleControlsClick:this.handleClick,className:"flexbox-fix"},"[object Array]"===Object.prototype.toString.call(this.props.children)?(o=this.props.children,s=o[0],n=2<=o.length?l.call(o,1):[],o,e.createElement("div",{style:c.primary,className:"flexbox-fix"},e.createElement("div",{style:c.sidebar,key:"sidebar-"+s},"Icon"===s.type.name?e.createElement("div",{style:c.sidebarIcon},s):s),e.createElement("div",{style:c.content,key:"content-"+n},function(){var i,o,l;for(l=[],r=i=0,o=n.length;i<o;r=++i)t=n[r],l.push(e.createElement("div",{key:r},t));return l}()))):e.createElement("div",{style:c.primary},e.createElement("div",{style:c.content},this.props.children)),this.props.secondaryAction?e.createElement("div",{style:c.secondary},this.props.secondaryAction):void 0)},o}(e.Component),module.exports=t}).call(void 0);