1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | import { __assign, __extends, __rest } from "tslib";
|
17 | import classNames from "classnames";
|
18 | import * as React from "react";
|
19 | import { AbstractPureComponent, Classes } from "../../common";
|
20 | import { DISPLAYNAME_PREFIX } from "../../common/props";
|
21 | import { NavbarDivider } from "./navbarDivider";
|
22 | import { NavbarGroup } from "./navbarGroup";
|
23 | import { NavbarHeading } from "./navbarHeading";
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | var Navbar = (function (_super) {
|
32 | __extends(Navbar, _super);
|
33 | function Navbar() {
|
34 | return _super !== null && _super.apply(this, arguments) || this;
|
35 | }
|
36 | Navbar.prototype.render = function () {
|
37 | var _a;
|
38 | var _b = this.props, children = _b.children, className = _b.className, fixedToTop = _b.fixedToTop, htmlProps = __rest(_b, ["children", "className", "fixedToTop"]);
|
39 | var classes = classNames(Classes.NAVBAR, (_a = {}, _a[Classes.FIXED_TOP] = fixedToTop, _a), className);
|
40 | return (React.createElement("div", __assign({ className: classes }, htmlProps), children));
|
41 | };
|
42 | Navbar.displayName = "".concat(DISPLAYNAME_PREFIX, ".Navbar");
|
43 | Navbar.Divider = NavbarDivider;
|
44 | Navbar.Group = NavbarGroup;
|
45 | Navbar.Heading = NavbarHeading;
|
46 | return Navbar;
|
47 | }(AbstractPureComponent));
|
48 | export { Navbar };
|
49 |
|
\ | No newline at end of file |