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