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 { AbstractPureComponent2, Classes } from "../../common";
|
20 | import { DISPLAYNAME_PREFIX } from "../../common/props";
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | var ControlGroup = (function (_super) {
|
29 | __extends(ControlGroup, _super);
|
30 | function ControlGroup() {
|
31 | return _super !== null && _super.apply(this, arguments) || this;
|
32 | }
|
33 | ControlGroup.prototype.render = function () {
|
34 | var _a;
|
35 | var _b = this.props, children = _b.children, className = _b.className, fill = _b.fill, vertical = _b.vertical, htmlProps = __rest(_b, ["children", "className", "fill", "vertical"]);
|
36 | var rootClasses = classNames(Classes.CONTROL_GROUP, (_a = {},
|
37 | _a[Classes.FILL] = fill,
|
38 | _a[Classes.VERTICAL] = vertical,
|
39 | _a), className);
|
40 | return (React.createElement("div", __assign({}, htmlProps, { className: rootClasses }), children));
|
41 | };
|
42 | ControlGroup.displayName = "".concat(DISPLAYNAME_PREFIX, ".ControlGroup");
|
43 | return ControlGroup;
|
44 | }(AbstractPureComponent2));
|
45 | export { ControlGroup };
|
46 |
|
\ | No newline at end of file |