Skip to content

Commit 51ae447

Browse files
author
David Brainer-Banker
committed
Release commit for 0.0.29-commonjs
0 parents  commit 51ae447

File tree

94 files changed

+42408
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+42408
-0
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# filesystem
2+
.DS_Store
3+
4+
# dependencies
5+
node_modules
6+
7+
# gh-pages
8+
_site/*
9+
10+
# Editors / IDEs
11+
.idea
12+
*.sublime-project
13+
*.sublime-workspace
14+
15+
# node_module cache for TravisCI, etc.
16+
node_modules.tar.gz
17+
18+
npm-debug.log
19+
.esformatter
20+
.npm
21+
.tmp*
22+
server/node_modules
23+
server/public/assets/bundle
24+
scripts/pre-commit.sh
25+
coverage/

LICENSE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Copyright (c) 2015, salesforce.com, inc. All rights reserved.
2+
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
5+
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.
6+
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.
7+
8+
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.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
Welcome to [Design System React](https://design-system-react.herokuapp.com).
3+
4+
Presented here are Javascript components based on [Lightning Design System](https://www.lightningdesignsystem.com/) and designed for React.
5+
6+
* Tailored for building Salesforce apps: Using Design System React ensures that your app's UI reflect the Salesforce Lightning look, feel, and behaviors.
7+
* 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.
8+
9+
## Documentation
10+
11+
[Design System React website](https://design-system-react.herokuapp.com)
12+
13+
[Salesforce Lightning Design System website](https://www.lightningdesignsystem.com)

components/SLDSSettings.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
Copyright (c) 2015, salesforce.com, inc. All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6+
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.
7+
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.
8+
9+
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.
10+
*/
11+
12+
'use strict';
13+
14+
var _reactModal = require('react-modal');
15+
16+
var _reactModal2 = _interopRequireDefault(_reactModal);
17+
18+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19+
20+
var assetsPath = 'assets/';
21+
var appRoot = void 0;
22+
module.exports = {
23+
setAssetsPath: function setAssetsPath(path) {
24+
if (path) {
25+
assetsPath = path;
26+
}
27+
},
28+
getAssetsPath: function getAssetsPath() {
29+
return String(assetsPath);
30+
},
31+
setAppElement: function setAppElement(el) {
32+
if (el) {
33+
appRoot = el;
34+
_reactModal2.default.setAppElement(el);
35+
}
36+
},
37+
getAppElement: function getAppElement() {
38+
return appRoot;
39+
}
40+
};

components/bread-crumb/index.js

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
'use strict';
2+
3+
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; }; }();
4+
5+
var _react = require('react');
6+
7+
var _react2 = _interopRequireDefault(_react);
8+
9+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10+
11+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12+
13+
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; }
14+
15+
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; }
16+
17+
var displayName = 'BreadCrumb';
18+
var propTypes = {
19+
/**
20+
* The assistive text for the breadcrumb trail
21+
*/
22+
assistiveText: _react2.default.PropTypes.string,
23+
/**
24+
* An array of react elements presumably anchor elements.
25+
*/
26+
trail: _react2.default.PropTypes.array
27+
};
28+
var defaultProps = {};
29+
30+
var BreadCrumb = function (_Component) {
31+
_inherits(BreadCrumb, _Component);
32+
33+
function BreadCrumb() {
34+
_classCallCheck(this, BreadCrumb);
35+
36+
return _possibleConstructorReturn(this, Object.getPrototypeOf(BreadCrumb).apply(this, arguments));
37+
}
38+
39+
_createClass(BreadCrumb, [{
40+
key: 'render',
41+
value: function render() {
42+
var _props = this.props;
43+
var assistiveText = _props.assistiveText;
44+
var trail = _props.trail;
45+
46+
var trailElement = void 0;
47+
48+
var renderTrail = function renderTrail() {
49+
var breadCrumbTrail = trail.map(function (crumb, i) {
50+
var crumbId = 'BreadCrumb.' + i;
51+
52+
return _react2.default.createElement(
53+
'li',
54+
{
55+
key: crumbId,
56+
className: 'slds-list__item slds-text-heading--label'
57+
},
58+
crumb
59+
);
60+
});
61+
62+
return _react2.default.createElement(
63+
'ol',
64+
{ className: 'slds-breadcrumb slds-list--horizontal', 'aria-labelledby': 'bread-crumb-label' },
65+
breadCrumbTrail
66+
);
67+
};
68+
69+
trailElement = renderTrail();
70+
71+
return _react2.default.createElement(
72+
'nav',
73+
{ role: 'navigation' },
74+
_react2.default.createElement(
75+
'p',
76+
{ id: 'bread-crumb-label', className: 'slds-assistive-text' },
77+
assistiveText
78+
),
79+
trailElement
80+
);
81+
}
82+
}]);
83+
84+
return BreadCrumb;
85+
}(_react.Component);
86+
87+
BreadCrumb.displayName = displayName;
88+
BreadCrumb.propTypes = propTypes;
89+
BreadCrumb.defaultProps = defaultProps;
90+
91+
module.exports = BreadCrumb;

components/button-group/index.js

Lines changed: 70 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)