1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | import { __assign, __decorate, __extends, __rest } from "tslib";
|
17 | import classNames from "classnames";
|
18 | import * as React from "react";
|
19 | import { polyfill } from "react-lifecycles-compat";
|
20 | import { AbstractPureComponent2, Alignment, Classes } from "../../common";
|
21 | import { DISPLAYNAME_PREFIX } from "../../common/props";
|
22 |
|
23 |
|
24 | var NavbarGroup = (function (_super) {
|
25 | __extends(NavbarGroup, _super);
|
26 | function NavbarGroup() {
|
27 | return _super !== null && _super.apply(this, arguments) || this;
|
28 | }
|
29 | NavbarGroup.prototype.render = function () {
|
30 | var _a = this.props, align = _a.align, children = _a.children, className = _a.className, htmlProps = __rest(_a, ["align", "children", "className"]);
|
31 | var classes = classNames(Classes.NAVBAR_GROUP, Classes.alignmentClass(align), className);
|
32 | return (React.createElement("div", __assign({ className: classes }, htmlProps), children));
|
33 | };
|
34 | NavbarGroup.displayName = DISPLAYNAME_PREFIX + ".NavbarGroup";
|
35 | NavbarGroup.defaultProps = {
|
36 | align: Alignment.LEFT,
|
37 | };
|
38 | NavbarGroup = __decorate([
|
39 | polyfill
|
40 | ], NavbarGroup);
|
41 | return NavbarGroup;
|
42 | }(AbstractPureComponent2));
|
43 | export { NavbarGroup };
|
44 |
|
\ | No newline at end of file |