@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
45 lines • 2.5 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import React from 'react';
import { Button, ButtonGroup, Icon } from '@momentum-ui/react-collaboration';
var ButtonGroupPill = /** @class */ (function (_super) {
__extends(ButtonGroupPill, _super);
function ButtonGroupPill() {
return _super !== null && _super.apply(this, arguments) || this;
}
ButtonGroupPill.prototype.render = function () {
return (React.createElement("div", null,
React.createElement("div", { className: "columns small-4" },
React.createElement(ButtonGroup, null,
React.createElement(Button, { ariaLabel: "left" },
React.createElement(Icon, { name: "icon-arrow-left_12" })),
React.createElement(Button, { ariaLabel: "right" },
React.createElement(Icon, { name: "icon-arrow-right_12" })))),
React.createElement("div", { className: "columns small-4" },
React.createElement(ButtonGroup, { type: "pill" },
React.createElement(Button, { ariaLabel: "left" },
React.createElement(Icon, { name: "icon-flag_16" })),
React.createElement(Button, { ariaLabel: "right" },
React.createElement(Icon, { name: "icon-cancel_16" })))),
React.createElement("div", { className: "columns small-4" },
React.createElement(ButtonGroup, { type: "pill", pillWidth: "60px" },
React.createElement(Button, { ariaLabel: "left" },
React.createElement(Icon, { name: "icon-flag_16" }))))));
};
return ButtonGroupPill;
}(React.PureComponent));
export default ButtonGroupPill;
//# sourceMappingURL=Pill.js.map