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

Namespace all synfrastructure components #12

Merged
merged 2 commits into from
Apr 22, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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