@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
43 lines • 2.93 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, ContentItem, Icon } from '@momentum-ui/react-collaboration';
var GifContentItem = /** @class */ (function (_super) {
__extends(GifContentItem, _super);
function GifContentItem() {
return _super !== null && _super.apply(this, arguments) || this;
}
GifContentItem.prototype.render = function () {
var actionNode = (React.createElement("div", null,
React.createElement(Button, { ariaLabel: "Show in conversation", style: { backgroundColor: 'black' }, circle: true, size: 32 },
React.createElement(Icon, { name: "chat_12", color: "white" })),
React.createElement(Button, { ariaLabel: "Open in folder", style: { backgroundColor: 'black' }, circle: true, size: 32 },
React.createElement(Icon, { name: "open-in-folder_12", color: "white" })),
React.createElement(Button, { ariaLabel: "Download", style: { backgroundColor: 'black' }, circle: true, size: 32 },
React.createElement(Icon, { name: "icon-arrow-tail-down_12", color: "white" }))));
var handleClick = function () {
alert('Image onClick');
};
return (React.createElement("div", { className: "columns large" },
React.createElement("div", { className: "docs-example docs-example--spacing" },
React.createElement(ContentItem, { actionNode: actionNode, aspect: "threeTwo", content: "http://upload.wikimedia.org/wikipedia/commons/d/dd/Muybridge_race_horse_animated.gif", gifIcon: "icon icon-gif_20", onClick: handleClick, subtitle: "Barbara German, 4 days", title: "Race Horse.gif", type: "file" })),
React.createElement("div", { className: "docs-example docs-example--spacing" },
React.createElement(ContentItem, { aspect: "sixteenNine", content: "http://upload.wikimedia.org/wikipedia/commons/d/dd/Muybridge_race_horse_animated.gif", fileSize: "50 KB", gifIcon: "icon icon-gif_24", isProtected: true, title: "Race Horse.gif", type: "chat" }))));
};
return GifContentItem;
}(React.PureComponent));
export default GifContentItem;
//# sourceMappingURL=Gif.js.map