Skip to content

Commit

Permalink
Replace React dependency with react-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jgable committed Mar 6, 2015
1 parent d268d6f commit e2442f1
Show file tree
Hide file tree
Showing 60 changed files with 379 additions and 339 deletions.
24 changes: 24 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "material-ui",
"version": "0.7.1",
"homepage": "https://github.com/callemall/material-ui",
"authors": [
"Call-em-all Engineering Team"
],
"description": "Material UI React Components",
"main": "dist/built.js",
"keywords": [
"material",
"ui",
"react"
],
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
575 changes: 292 additions & 283 deletions dist/built.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/app-bar.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var IconButton = require('./icon-button');
var NavigationMenu = require('./svg-icons/navigation-menu');
Expand Down
2 changes: 1 addition & 1 deletion src/js/app-canvas.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react'),
var React = require('../react-lib'),
Classable = require('./mixins/classable');

var AppCanvas = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/checkbox.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var EnhancedSwitch = require('./enhanced-switch');
var Classable = require('./mixins/classable');
var CheckboxOutline = require('./svg-icons/toggle-check-box-outline-blank');
Expand Down
2 changes: 1 addition & 1 deletion src/js/date-picker/calendar-month.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('../mixins/classable');
var DateTime = require('../utils/date-time');
var DayButton = require('./day-button');
Expand Down
2 changes: 1 addition & 1 deletion src/js/date-picker/calendar-toolbar.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var DateTime = require('../utils/date-time');
var IconButton = require('../icon-button');
var NavigationChevronLeft = require('../svg-icons/navigation-chevron-left');
Expand Down
2 changes: 1 addition & 1 deletion src/js/date-picker/calendar.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('../mixins/classable');
var WindowListenable = require('../mixins/window-listenable');
var DateTime = require('../utils/date-time');
Expand Down
2 changes: 1 addition & 1 deletion src/js/date-picker/date-display.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('../mixins/classable');
var DateTime = require('../utils/date-time');
var SlideInTransitionGroup = require('../transition-groups/slide-in');
Expand Down
2 changes: 1 addition & 1 deletion src/js/date-picker/date-picker-dialog.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('../mixins/classable');
var WindowListenable = require('../mixins/window-listenable');
var KeyCode = require('../utils/key-code');
Expand Down
2 changes: 1 addition & 1 deletion src/js/date-picker/date-picker.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('../mixins/classable');
var WindowListenable = require('../mixins/window-listenable');
var DateTime = require('../utils/date-time');
Expand Down
2 changes: 1 addition & 1 deletion src/js/date-picker/day-button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('../mixins/classable');
var DateTime = require('../utils/date-time');
var EnhancedButton = require('../enhanced-button');
Expand Down
2 changes: 1 addition & 1 deletion src/js/dialog-window.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var WindowListenable = require('./mixins/window-listenable');
var CssEvent = require('./utils/css-event');
var KeyCode = require('./utils/key-code');
Expand Down
2 changes: 1 addition & 1 deletion src/js/dialog.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var DialogWindow = require('./dialog-window');

Expand Down
2 changes: 1 addition & 1 deletion src/js/drop-down-icon.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var ClickAwayable = require('./mixins/click-awayable');
var KeyLine = require('./utils/key-line');
Expand Down
2 changes: 1 addition & 1 deletion src/js/drop-down-menu.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var ClickAwayable = require('./mixins/click-awayable');
var DropDownArrow = require('./svg-icons/drop-down-arrow');
Expand Down
2 changes: 1 addition & 1 deletion src/js/enhanced-button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var KeyCode = require('./utils/key-code');
var Classable = require('./mixins/classable');
var WindowListenable = require('./mixins/window-listenable');
Expand Down
2 changes: 1 addition & 1 deletion src/js/enhanced-switch.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var KeyCode = require('./utils/key-code');
var Classable = require('./mixins/classable');
var DomIdable = require('./mixins/dom-idable');
Expand Down
2 changes: 1 addition & 1 deletion src/js/enhanced-textarea.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');

var EnhancedTextarea = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/flat-button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var EnhancedButton = require('./enhanced-button');

Expand Down
2 changes: 1 addition & 1 deletion src/js/floating-action-button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var EnhancedButton = require('./enhanced-button');
var FontIcon = require('./font-icon');
Expand Down
2 changes: 1 addition & 1 deletion src/js/font-icon.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');

var FontIcon = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/icon-button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var EnhancedButton = require('./enhanced-button');
var FontIcon = require('./font-icon');
Expand Down
2 changes: 1 addition & 1 deletion src/js/ink-bar.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');

var InkBar = React.createClass({

Expand Down
2 changes: 1 addition & 1 deletion src/js/input.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var classSet = require('react-classset');

Expand Down
2 changes: 1 addition & 1 deletion src/js/left-nav.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react'),
var React = require('../react-lib'),
KeyCode = require('./utils/key-code'),
Classable = require('./mixins/classable'),
WindowListenable = require('./mixins/window-listenable'),
Expand Down
2 changes: 1 addition & 1 deletion src/js/menu-item.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var FontIcon = require('./font-icon');
var Toggle = require('./toggle');
Expand Down
2 changes: 1 addition & 1 deletion src/js/menu.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var CssEvent = require('./utils/css-event');
var Dom = require('./utils/dom');
var KeyLine = require('./utils/key-line');
Expand Down
2 changes: 1 addition & 1 deletion src/js/mixins/classable.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var classSet = require('react-classset');

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion src/js/overlay.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react'),
var React = require('../react-lib'),
Classable = require('./mixins/classable');

var Overlay = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/paper.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react'),
var React = require('../react-lib'),
Classable = require('./mixins/classable');

var Paper = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/radio-button-group.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Paper = require('./paper');
var Classable = require('./mixins/classable');
var EnhancedSwitch = require('./enhanced-switch');
Expand Down
2 changes: 1 addition & 1 deletion src/js/radio-button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var EnhancedSwitch = require('./enhanced-switch');
var RadioButtonOff = require('./svg-icons/toggle-radio-button-off');
Expand Down
2 changes: 1 addition & 1 deletion src/js/raised-button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var EnhancedButton = require('./enhanced-button');
var Paper = require('./paper');
Expand Down
1 change: 1 addition & 0 deletions src/js/react-lib.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../react-lib');
2 changes: 1 addition & 1 deletion src/js/ripples/circle.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('../mixins/classable');

var RippleCircle = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/ripples/focus-ripple.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('../mixins/classable');

var FocusRipple = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/ripples/touch-ripple.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('../mixins/classable');
var Dom = require('../utils/dom');
var RippleCircle = require('./circle');
Expand Down
2 changes: 1 addition & 1 deletion src/js/slider.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var React = require('react'),
var React = require('../react-lib'),
Paper = require('./paper'),
Classable = require('./mixins/classable'),
Draggable = require('react-draggable2');
Expand Down
2 changes: 1 addition & 1 deletion src/js/snackbar.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var CssEvent = require('./utils/css-event');
var Classable = require('./mixins/classable');
var ClickAwayable = require('./mixins/click-awayable');
Expand Down
2 changes: 1 addition & 1 deletion src/js/svg-icons/drop-down-arrow.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var SvgIcon = require('./svg-icon');

var DropDownArrow = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/svg-icons/navigation-chevron-left.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var SvgIcon = require('./svg-icon');

var NavigationChevronLeft = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/svg-icons/navigation-chevron-right.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var SvgIcon = require('./svg-icon');

var NavigationChevronLeft = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/svg-icons/navigation-menu.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var SvgIcon = require('./svg-icon');

var NavigationMenu = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/svg-icons/svg-icon.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('../mixins/classable');

var SvgIcon = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/svg-icons/toggle-check-box-checked.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var SvgIcon = require('./svg-icon');

var ToggleCheckBoxChecked = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/svg-icons/toggle-check-box-outline-blank.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var SvgIcon = require('./svg-icon');

var ToggleCheckBoxOutlineBlank = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/svg-icons/toggle-radio-button-off.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var SvgIcon = require('./svg-icon');

var RadioButtonOff = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/svg-icons/toggle-radio-button-on.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var SvgIcon = require('./svg-icon');

var RadioButtonOn = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/table-header.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react'),
var React = require('../react-lib'),
Classable = require('./mixins/classable');

var TableHeader = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/table-rows-item.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react'),
var React = require('../react-lib'),
Classable = require('./mixins/classable');

var TableRowItem = React.createClass({
Expand Down
2 changes: 1 addition & 1 deletion src/js/table-rows.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react'),
var React = require('../react-lib'),
Classable = require('./mixins/classable'),
TableRowsItem = require('./table-rows-item');

Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/tab.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('../mixins/classable');
var TabTemplate = require('./tabTemplate');

Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/tabTemplate.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');

var TabTemplate = React.createClass({

Expand Down
2 changes: 1 addition & 1 deletion src/js/text-field.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var DomIdable = require('./mixins/dom-idable');
var EnhancedTextarea = require('./enhanced-textarea');
Expand Down
2 changes: 1 addition & 1 deletion src/js/toggle.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');
var Paper = require('./paper');
var EnhancedSwitch = require('./enhanced-switch');
Expand Down
2 changes: 1 addition & 1 deletion src/js/toolbar-group.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var Classable = require('./mixins/classable');
var React = require('react');
var React = require('../react-lib');

var ToolbarGroup = React.createClass({

Expand Down
2 changes: 1 addition & 1 deletion src/js/toolbar.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var Classable = require('./mixins/classable');
var React = require('react');
var React = require('../react-lib');

var Toolbar = React.createClass({

Expand Down
2 changes: 1 addition & 1 deletion src/js/tooltip.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var React = require('react');
var React = require('../react-lib');
var Classable = require('./mixins/classable');

var Tooltip = React.createClass({
Expand Down
6 changes: 6 additions & 0 deletions src/react-lib.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

if (typeof window !== undefined) {
module.exports = window.React;
} else {
module.exports = require('react');
}

0 comments on commit e2442f1

Please sign in to comment.