Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #12 from synapsestudios/design/12-namespace-compon…
Browse files Browse the repository at this point in the history
…ents

Namespace all synfrastructure components
  • Loading branch information
natestormer committed Apr 22, 2015
2 parents f8535d0 + ada4f16 commit adce9bb
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 7 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var SynfrastructureHelperMixin = require('../../mixins/synfrastructure-helper-mi

module.exports = React.createClass({

displayName : 'Alert',
displayName : 'UI-Alert',

mixins : [SynfrastructureHelperMixin],

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var SynfrastructureHelperMixin = require('../../mixins/synfrastructure-helper-mi

module.exports = React.createClass({

displayName : 'Button',
displayName : 'UI-Button',

mixins : [SynfrastructureHelperMixin],

Expand All @@ -21,6 +21,10 @@ module.exports = React.createClass({
attributes : React.PropTypes.object,
componentCSSClassName : React.PropTypes.string,
size : React.PropTypes.string,
modifier : React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.array
]),
disabled : React.PropTypes.bool,
className : React.PropTypes.string,
onClick : React.PropTypes.func
Expand All @@ -33,6 +37,7 @@ module.exports = React.createClass({
attributes : {},
componentCSSClassName : 'button',
size : null,
modifier : null,
disabled : false,
className : null,
onClick : null
Expand All @@ -49,6 +54,7 @@ module.exports = React.createClass({

classes = [
this.props.componentCSSClassName,
this.props.modifier.join(' '),
this.props.className,
this.props.disabled ?
this.props.componentCSSClassName + '--disabled' : null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var FormInputMixin = require('../../../mixins/form-input-mixin');

module.exports = React.createClass({

displayName : 'Input',
displayName : 'UI-Input',

mixins : [
FormInputMixin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var FormInputMixin = require('../../../mixins/form-input-mixin');

module.exports = React.createClass({

displayName : 'Select',
displayName : 'UI-Select',

mixins : [
FormInputMixin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var FormInputMixin = require('../../../mixins/form-input-mixin');

module.exports = React.createClass({

displayName : 'TextArea',
displayName : 'UI-TextArea',

mixins : [
FormInputMixin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var SynfrastructureHelperMixin = require('../../../mixins/synfrastructure-helper

module.exports = React.createClass({

displayName : 'FormLabel',
displayName : 'UI-FormLabel',

mixins : [SynfrastructureHelperMixin],

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var SynfrastructureHelperMixin = require('../../../mixins/synfrastructure-helper

module.exports = React.createClass({

displayName : 'Validation',
displayName : 'UI-Validation',

mixins : [SynfrastructureHelperMixin],

Expand Down

0 comments on commit adce9bb

Please sign in to comment.