Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
casesandberg committed Aug 9, 2015
0 parents commit b140f90
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/components/Color.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
'use strict';

var React = require('react');
var ReactCSS = require('reactcss');

var SketchPicker = require('./Sketch/SketchPicker');

class ColorPicker extends ReactCSS.Component {

classes() {
return {
'default': {

},
};
}

render() {
return (
<SketchPicker />
);
}

}

module.exports = ColorPicker;
24 changes: 24 additions & 0 deletions src/components/Sketch/SketchPicker.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use strict';

var React = require('react');
var ReactCSS = require('reactcss');

class ColorPicker extends ReactCSS.Component {

classes() {
return {
'default': {

},
};
}

render() {
return (
<div>Sketch Picker</div>
);
}

}

module.exports = ColorPicker;
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

module.exports = require('./components/ColorPicker');
38 changes: 38 additions & 0 deletions src/specs/Color.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

var Harness = require('react-harness');
var Color = require('./../components/Color');

Color.propTypes = {
tabs: Harness.PropTypes.array.examples([
[{
label: 'cool',
callback: function() {
console.log('cool');
},
}, {
label: 'tabs',
callback: function() {
console.log('tabs');
},
},],
['cool', 'tabs'], ['foo', 'bar', 'longer'], ['foo', 'bar', 'way longer', 'even', 'still'],
]),
align: Harness.PropTypes.oneOf(['none', 'justify', 'left', 'center']),
color: Harness.PropTypes.string.examples(['#fff', '#FFEB3B']),
background: Harness.PropTypes.string.examples(['transparent', '#4A90E2']),
};

module.exports = {
label: 'Color',
desc: 'Lorem Ipsum',

component: Color,

instances: {
'default': {
tabs: ['foo', 'bar'],
color: '#333',
background: '#eee',
},
},
};
4 changes: 4 additions & 0 deletions src/specs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

module.exports = {
ColorPicker: require('./Color.spec'),
};

0 comments on commit b140f90

Please sign in to comment.