Skip to content

Commit 03814a1

Browse files
committed
Run build
1 parent 3fbd68e commit 03814a1

File tree

9 files changed

+83
-37
lines changed

9 files changed

+83
-37
lines changed

demo/static/bundle.js

Lines changed: 5 additions & 5 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: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10162,6 +10162,7 @@ return /******/ (function(modules) { // webpackBootstrap
1016210162
type: this.props.type,
1016310163
iconCategory: this.props.iconCategory,
1016410164
iconName: this.props.iconName ? this.props.iconName : this.props.type,
10165+
iconClasses: this.props.iconClasses,
1016510166
focusIndex: this.state.focusIndex,
1016610167
listLength: this.state.listLength,
1016710168
items: this.state.items,
@@ -10439,6 +10440,7 @@ return /******/ (function(modules) { // webpackBootstrap
1043910440
type: _this.props.type,
1044010441
iconCategory: _this.props.iconCategory,
1044110442
iconName: _this.props.iconName,
10443+
iconClasses: _this.props.iconClasses,
1044210444
searchTerm: _this.props.searchTerm,
1044310445
index: i,
1044410446
isActive: isActive,
@@ -10631,7 +10633,7 @@ return /******/ (function(modules) { // webpackBootstrap
1063110633
var ListItemLabel = this.props.listItemLabelRenderer;
1063210634
return _react2['default'].createElement(ListItemLabel, this.props);
1063310635
}
10634-
return [_react2['default'].createElement(_SLDSIcons.Icon, { name: this.props.iconName, category: this.props.iconCategory }), this.boldSearchText(this.props.children.label)];
10636+
return [_react2['default'].createElement(_SLDSIcons.Icon, { name: this.props.iconName, category: this.props.iconCategory, className: this.props.iconClasses }), this.boldSearchText(this.props.children.label)];
1063510637
}
1063610638
}, {
1063710639
key: 'render',
@@ -11557,6 +11559,23 @@ return /******/ (function(modules) { // webpackBootstrap
1155711559

1155811560
var classNames = __webpack_require__(23);
1155911561

11562+
var displayName = 'SLDSNotification';
11563+
var propTypes = {
11564+
className: _react2["default"].PropTypes.string,
11565+
content: _react2["default"].PropTypes.node,
11566+
dismissible: _react2["default"].PropTypes.bool,
11567+
duration: _react2["default"].PropTypes.number,
11568+
icon: _react2["default"].PropTypes.string,
11569+
onDismiss: _react2["default"].PropTypes.func,
11570+
texture: _react2["default"].PropTypes.bool,
11571+
theme: _react2["default"].PropTypes.oneOf(["success", "warning", "error", "offline"]),
11572+
variant: _react2["default"].PropTypes.oneOf(["alert", "toast"])
11573+
};
11574+
11575+
var defaultProps = {
11576+
dismissible: true
11577+
};
11578+
1156011579
var SLDSNotification = (function (_React$Component) {
1156111580
_inherits(SLDSNotification, _React$Component);
1156211581

@@ -11568,6 +11587,20 @@ return /******/ (function(modules) { // webpackBootstrap
1156811587
}
1156911588

1157011589
_createClass(SLDSNotification, [{
11590+
key: "componentDidMount",
11591+
value: function componentDidMount() {
11592+
var _this = this;
11593+
11594+
if (this.props.duration) {
11595+
(function () {
11596+
var that = _this;
11597+
setTimeout(function () {
11598+
that.setState({ isOpen: false });
11599+
}, that.props.duration);
11600+
})();
11601+
}
11602+
}
11603+
}, {
1157111604
key: "renderIcon",
1157211605
value: function renderIcon() {
1157311606
if (this.props.icon) {
@@ -11643,19 +11676,9 @@ return /******/ (function(modules) { // webpackBootstrap
1164311676
return SLDSNotification;
1164411677
})(_react2["default"].Component);
1164511678

11646-
SLDSNotification.propTypes = {
11647-
content: _react2["default"].PropTypes.node,
11648-
icon: _react2["default"].PropTypes.string,
11649-
variant: _react2["default"].PropTypes.oneOf(["alert", "toast"]),
11650-
theme: _react2["default"].PropTypes.oneOf(["success", "warning", "error", "offline"]),
11651-
texture: _react2["default"].PropTypes.bool,
11652-
dismissible: _react2["default"].PropTypes.bool,
11653-
onDismiss: _react2["default"].PropTypes.func
11654-
};
11655-
11656-
SLDSNotification.defaultProps = {
11657-
dismissible: true
11658-
};
11679+
SLDSNotification.displayName = displayName;
11680+
SLDSNotification.propTypes = propTypes;
11681+
SLDSNotification.defaultProps = defaultProps;
1165911682

1166011683
module.exports = SLDSNotification;
1166111684

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: 2 additions & 2 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/SLDSLookup/Menu/Item/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ var Item = (function (_React$Component) {
8686
var ListItemLabel = this.props.listItemLabelRenderer;
8787
return _react2['default'].createElement(ListItemLabel, this.props);
8888
}
89-
return [_react2['default'].createElement(_SLDSIcons.Icon, { name: this.props.iconName, category: this.props.iconCategory }), this.boldSearchText(this.props.children.label)];
89+
return [_react2['default'].createElement(_SLDSIcons.Icon, { name: this.props.iconName, category: this.props.iconCategory, className: this.props.iconClasses }), this.boldSearchText(this.props.children.label)];
9090
}
9191
}, {
9292
key: 'render',

lib/SLDSLookup/Menu/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ var Menu = (function (_React$Component) {
127127
type: _this.props.type,
128128
iconCategory: _this.props.iconCategory,
129129
iconName: _this.props.iconName,
130+
iconClasses: _this.props.iconClasses,
130131
searchTerm: _this.props.searchTerm,
131132
index: i,
132133
isActive: isActive,

lib/SLDSLookup/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ var SLDSLookup = (function (_React$Component) {
346346
type: this.props.type,
347347
iconCategory: this.props.iconCategory,
348348
iconName: this.props.iconName ? this.props.iconName : this.props.type,
349+
iconClasses: this.props.iconClasses,
349350
focusIndex: this.state.focusIndex,
350351
listLength: this.state.listLength,
351352
items: this.state.items,

lib/SLDSNotification/index.js

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,23 @@ var _SLDSIcons = require("../SLDSIcons");
3535

3636
var classNames = require("classnames");
3737

38+
var displayName = 'SLDSNotification';
39+
var propTypes = {
40+
className: _react2["default"].PropTypes.string,
41+
content: _react2["default"].PropTypes.node,
42+
dismissible: _react2["default"].PropTypes.bool,
43+
duration: _react2["default"].PropTypes.number,
44+
icon: _react2["default"].PropTypes.string,
45+
onDismiss: _react2["default"].PropTypes.func,
46+
texture: _react2["default"].PropTypes.bool,
47+
theme: _react2["default"].PropTypes.oneOf(["success", "warning", "error", "offline"]),
48+
variant: _react2["default"].PropTypes.oneOf(["alert", "toast"])
49+
};
50+
51+
var defaultProps = {
52+
dismissible: true
53+
};
54+
3855
var SLDSNotification = (function (_React$Component) {
3956
_inherits(SLDSNotification, _React$Component);
4057

@@ -46,6 +63,20 @@ var SLDSNotification = (function (_React$Component) {
4663
}
4764

4865
_createClass(SLDSNotification, [{
66+
key: "componentDidMount",
67+
value: function componentDidMount() {
68+
var _this = this;
69+
70+
if (this.props.duration) {
71+
(function () {
72+
var that = _this;
73+
setTimeout(function () {
74+
that.setState({ isOpen: false });
75+
}, that.props.duration);
76+
})();
77+
}
78+
}
79+
}, {
4980
key: "renderIcon",
5081
value: function renderIcon() {
5182
if (this.props.icon) {
@@ -154,18 +185,8 @@ var SLDSNotification = (function (_React$Component) {
154185
return SLDSNotification;
155186
})(_react2["default"].Component);
156187

157-
SLDSNotification.propTypes = {
158-
content: _react2["default"].PropTypes.node,
159-
icon: _react2["default"].PropTypes.string,
160-
variant: _react2["default"].PropTypes.oneOf(["alert", "toast"]),
161-
theme: _react2["default"].PropTypes.oneOf(["success", "warning", "error", "offline"]),
162-
texture: _react2["default"].PropTypes.bool,
163-
dismissible: _react2["default"].PropTypes.bool,
164-
onDismiss: _react2["default"].PropTypes.func
165-
};
166-
167-
SLDSNotification.defaultProps = {
168-
dismissible: true
169-
};
188+
SLDSNotification.displayName = displayName;
189+
SLDSNotification.propTypes = propTypes;
190+
SLDSNotification.defaultProps = defaultProps;
170191

171192
module.exports = SLDSNotification;

0 commit comments

Comments
 (0)