Skip to content

Commit 8b9069c

Browse files
committed
Run build
1 parent 895eb5c commit 8b9069c

File tree

10 files changed

+146
-111
lines changed

10 files changed

+146
-111
lines changed

components/SLDSButtonGroup/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import React from "react";
1313

1414
const displayName = "SLDSButtonGroup";
1515
const propTypes = {
16-
children: React.PropTypes.element.isRequired
16+
children: React.PropTypes.node.isRequired
1717
};
1818
const defaultProps = {};
1919

@@ -36,5 +36,5 @@ SLDSButtonGroup.displayName = displayName;
3636
SLDSButtonGroup.propTypes = propTypes;
3737
SLDSButtonGroup.defaultProps = defaultProps;
3838

39-
module.exports = ButtonGroup;
39+
module.exports = SLDSButtonGroup;
4040

components/SLDSIcons.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ export const ButtonIcon = React.createClass({
3636
if (this.props.destructive) {
3737
className += ' slds-button__icon--destructive';
3838
}
39+
if (this.props.hint) {
40+
className += ' slds-button__icon--hint';
41+
}
3942
if (this.props.assistiveText) {
4043
label = <span className="slds-assistive-text">{this.props.assistiveText}</span>;
4144
}

demo/static/bundle.js

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

dist/design-system-react.js

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3486,6 +3486,9 @@ return /******/ (function(modules) { // webpackBootstrap
34863486
if (this.props.destructive) {
34873487
className += ' slds-button__icon--destructive';
34883488
}
3489+
if (this.props.hint) {
3490+
className += ' slds-button__icon--hint';
3491+
}
34893492
if (this.props.assistiveText) {
34903493
label = _react2['default'].createElement('span', { className: 'slds-assistive-text' }, this.props.assistiveText);
34913494
}
@@ -7470,17 +7473,17 @@ return /******/ (function(modules) { // webpackBootstrap
74707473
};
74717474
var defaultProps = {};
74727475

7473-
var Button = (function (_React$Component) {
7474-
_inherits(Button, _React$Component);
7476+
var SLDSButton = (function (_React$Component) {
7477+
_inherits(SLDSButton, _React$Component);
74757478

7476-
function Button(props) {
7477-
_classCallCheck(this, Button);
7479+
function SLDSButton(props) {
7480+
_classCallCheck(this, SLDSButton);
74787481

7479-
_get(Object.getPrototypeOf(Button.prototype), "constructor", this).call(this, props);
7482+
_get(Object.getPrototypeOf(SLDSButton.prototype), "constructor", this).call(this, props);
74807483
this.state = { active: false };
74817484
}
74827485

7483-
_createClass(Button, [{
7486+
_createClass(SLDSButton, [{
74847487
key: "onClick",
74857488
value: function onClick() {
74867489
this.setState({ active: !this.state.active });
@@ -7540,14 +7543,14 @@ return /******/ (function(modules) { // webpackBootstrap
75407543
}
75417544
}]);
75427545

7543-
return Button;
7546+
return SLDSButton;
75447547
})(_react2["default"].Component);
75457548

7546-
Button.displayName = displayName;
7547-
Button.propTypes = propTypes;
7548-
Button.defaultProps = defaultProps;
7549+
SLDSButton.displayName = displayName;
7550+
SLDSButton.propTypes = propTypes;
7551+
SLDSButton.defaultProps = defaultProps;
75497552

7550-
module.exports = Button;
7553+
module.exports = SLDSButton;
75517554

75527555
/***/ },
75537556
/* 51 */
@@ -9441,27 +9444,37 @@ return /******/ (function(modules) { // webpackBootstrap
94419444

94429445
var _react2 = _interopRequireDefault(_react);
94439446

9444-
var ButtonGroup = (function (_React$Component) {
9445-
_inherits(ButtonGroup, _React$Component);
9447+
var displayName = "SLDSButtonGroup";
9448+
var propTypes = {
9449+
children: _react2["default"].PropTypes.node.isRequired
9450+
};
9451+
var defaultProps = {};
9452+
9453+
var SLDSButtonGroup = (function (_React$Component) {
9454+
_inherits(SLDSButtonGroup, _React$Component);
94469455

9447-
function ButtonGroup(props) {
9448-
_classCallCheck(this, ButtonGroup);
9456+
function SLDSButtonGroup(props) {
9457+
_classCallCheck(this, SLDSButtonGroup);
94499458

9450-
_get(Object.getPrototypeOf(ButtonGroup.prototype), "constructor", this).call(this, props);
9459+
_get(Object.getPrototypeOf(SLDSButtonGroup.prototype), "constructor", this).call(this, props);
94519460
this.state = {};
94529461
}
94539462

9454-
_createClass(ButtonGroup, [{
9463+
_createClass(SLDSButtonGroup, [{
94559464
key: "render",
94569465
value: function render() {
94579466
return _react2["default"].createElement("div", { className: "slds-button-group", role: "group" }, this.props.children);
94589467
}
94599468
}]);
94609469

9461-
return ButtonGroup;
9470+
return SLDSButtonGroup;
94629471
})(_react2["default"].Component);
94639472

9464-
module.exports = ButtonGroup;
9473+
SLDSButtonGroup.displayName = displayName;
9474+
SLDSButtonGroup.propTypes = propTypes;
9475+
SLDSButtonGroup.defaultProps = defaultProps;
9476+
9477+
module.exports = SLDSButtonGroup;
94659478

94669479
/***/ },
94679480
/* 71 */

dist/design-system-react.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/design-system-react.min.js

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

dist/design-system-react.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/SLDSButton/index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@ var propTypes = {
5959
};
6060
var defaultProps = {};
6161

62-
var Button = (function (_React$Component) {
63-
_inherits(Button, _React$Component);
62+
var SLDSButton = (function (_React$Component) {
63+
_inherits(SLDSButton, _React$Component);
6464

65-
function Button(props) {
66-
_classCallCheck(this, Button);
65+
function SLDSButton(props) {
66+
_classCallCheck(this, SLDSButton);
6767

68-
_get(Object.getPrototypeOf(Button.prototype), "constructor", this).call(this, props);
68+
_get(Object.getPrototypeOf(SLDSButton.prototype), "constructor", this).call(this, props);
6969
this.state = { active: false };
7070
}
7171

72-
_createClass(Button, [{
72+
_createClass(SLDSButton, [{
7373
key: "onClick",
7474
value: function onClick() {
7575
this.setState({ active: !this.state.active });
@@ -166,11 +166,11 @@ var Button = (function (_React$Component) {
166166
}
167167
}]);
168168

169-
return Button;
169+
return SLDSButton;
170170
})(_react2["default"].Component);
171171

172-
Button.displayName = displayName;
173-
Button.propTypes = propTypes;
174-
Button.defaultProps = defaultProps;
172+
SLDSButton.displayName = displayName;
173+
SLDSButton.propTypes = propTypes;
174+
SLDSButton.defaultProps = defaultProps;
175175

176-
module.exports = Button;
176+
module.exports = SLDSButton;

lib/SLDSButtonGroup/index.js

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,23 @@ var _react = require("react");
2525

2626
var _react2 = _interopRequireDefault(_react);
2727

28-
var ButtonGroup = (function (_React$Component) {
29-
_inherits(ButtonGroup, _React$Component);
28+
var displayName = "SLDSButtonGroup";
29+
var propTypes = {
30+
children: _react2["default"].PropTypes.node.isRequired
31+
};
32+
var defaultProps = {};
3033

31-
function ButtonGroup(props) {
32-
_classCallCheck(this, ButtonGroup);
34+
var SLDSButtonGroup = (function (_React$Component) {
35+
_inherits(SLDSButtonGroup, _React$Component);
3336

34-
_get(Object.getPrototypeOf(ButtonGroup.prototype), "constructor", this).call(this, props);
37+
function SLDSButtonGroup(props) {
38+
_classCallCheck(this, SLDSButtonGroup);
39+
40+
_get(Object.getPrototypeOf(SLDSButtonGroup.prototype), "constructor", this).call(this, props);
3541
this.state = {};
3642
}
3743

38-
_createClass(ButtonGroup, [{
44+
_createClass(SLDSButtonGroup, [{
3945
key: "render",
4046
value: function render() {
4147
return _react2["default"].createElement(
@@ -46,7 +52,11 @@ var ButtonGroup = (function (_React$Component) {
4652
}
4753
}]);
4854

49-
return ButtonGroup;
55+
return SLDSButtonGroup;
5056
})(_react2["default"].Component);
5157

52-
module.exports = ButtonGroup;
58+
SLDSButtonGroup.displayName = displayName;
59+
SLDSButtonGroup.propTypes = propTypes;
60+
SLDSButtonGroup.defaultProps = defaultProps;
61+
62+
module.exports = SLDSButtonGroup;

lib/SLDSIcons.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ var ButtonIcon = _react2['default'].createClass({
4949
if (this.props.destructive) {
5050
className += ' slds-button__icon--destructive';
5151
}
52+
if (this.props.hint) {
53+
className += ' slds-button__icon--hint';
54+
}
5255
if (this.props.assistiveText) {
5356
label = _react2['default'].createElement(
5457
'span',

0 commit comments

Comments
 (0)