Skip to content

Commit

Permalink
Release commit for 0.0.29-commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
David Brainer-Banker committed May 20, 2016
0 parents commit 51ae447
Show file tree
Hide file tree
Showing 94 changed files with 42,408 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# filesystem
.DS_Store

# dependencies
node_modules

# gh-pages
_site/*

# Editors / IDEs
.idea
*.sublime-project
*.sublime-workspace

# node_module cache for TravisCI, etc.
node_modules.tar.gz

npm-debug.log
.esformatter
.npm
.tmp*
server/node_modules
server/public/assets/bundle
scripts/pre-commit.sh
coverage/
8 changes: 8 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Copyright (c) 2015, salesforce.com, inc. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of salesforce.com, inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

Welcome to [Design System React](https://design-system-react.herokuapp.com).

Presented here are Javascript components based on [Lightning Design System](https://www.lightningdesignsystem.com/) and designed for React.

* Tailored for building Salesforce apps: Using Design System React ensures that your app's UI reflect the Salesforce Lightning look, feel, and behaviors.
* Continuously updated: As long as you’re using the latest version of Design System React, your pages are always up to date with Salesforce UI changes.

## Documentation

[Design System React website](https://design-system-react.herokuapp.com)

[Salesforce Lightning Design System website](https://www.lightningdesignsystem.com)
40 changes: 40 additions & 0 deletions components/SLDSSettings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
Copyright (c) 2015, salesforce.com, inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of salesforce.com, inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

'use strict';

var _reactModal = require('react-modal');

var _reactModal2 = _interopRequireDefault(_reactModal);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var assetsPath = 'assets/';
var appRoot = void 0;
module.exports = {
setAssetsPath: function setAssetsPath(path) {
if (path) {
assetsPath = path;
}
},
getAssetsPath: function getAssetsPath() {
return String(assetsPath);
},
setAppElement: function setAppElement(el) {
if (el) {
appRoot = el;
_reactModal2.default.setAppElement(el);
}
},
getAppElement: function getAppElement() {
return appRoot;
}
};
91 changes: 91 additions & 0 deletions components/bread-crumb/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
'use strict';

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var displayName = 'BreadCrumb';
var propTypes = {
/**
* The assistive text for the breadcrumb trail
*/
assistiveText: _react2.default.PropTypes.string,
/**
* An array of react elements presumably anchor elements.
*/
trail: _react2.default.PropTypes.array
};
var defaultProps = {};

var BreadCrumb = function (_Component) {
_inherits(BreadCrumb, _Component);

function BreadCrumb() {
_classCallCheck(this, BreadCrumb);

return _possibleConstructorReturn(this, Object.getPrototypeOf(BreadCrumb).apply(this, arguments));
}

_createClass(BreadCrumb, [{
key: 'render',
value: function render() {
var _props = this.props;
var assistiveText = _props.assistiveText;
var trail = _props.trail;

var trailElement = void 0;

var renderTrail = function renderTrail() {
var breadCrumbTrail = trail.map(function (crumb, i) {
var crumbId = 'BreadCrumb.' + i;

return _react2.default.createElement(
'li',
{
key: crumbId,
className: 'slds-list__item slds-text-heading--label'
},
crumb
);
});

return _react2.default.createElement(
'ol',
{ className: 'slds-breadcrumb slds-list--horizontal', 'aria-labelledby': 'bread-crumb-label' },
breadCrumbTrail
);
};

trailElement = renderTrail();

return _react2.default.createElement(
'nav',
{ role: 'navigation' },
_react2.default.createElement(
'p',
{ id: 'bread-crumb-label', className: 'slds-assistive-text' },
assistiveText
),
trailElement
);
}
}]);

return BreadCrumb;
}(_react.Component);

BreadCrumb.displayName = displayName;
BreadCrumb.propTypes = propTypes;
BreadCrumb.defaultProps = defaultProps;

module.exports = BreadCrumb;
70 changes: 70 additions & 0 deletions components/button-group/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 51ae447

Please sign in to comment.