@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
43 lines • 2.94 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 FileContentItem = /** @class */ (function (_super) {
__extends(FileContentItem, _super);
function FileContentItem() {
return _super !== null && _super.apply(this, arguments) || this;
}
FileContentItem.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: "https://vmcdn.ca/f/files/sudbury/uploadedImages/news/localNews/2015/06/090615_IKEA_sized.jpg;w=630", onClick: handleClick, subtitle: "Barbara German, 4 days", title: "Logo.pdf", type: "file" })),
React.createElement("div", { className: "docs-example docs-example--spacing" },
React.createElement(ContentItem, { aspect: "threeTwo", content: "https://vmcdn.ca/f/files/sudbury/uploadedImages/news/localNews/2015/06/090615_IKEA_sized.jpg;w=630", isProtected: true, subtitle: "Barbara German, 4 days", title: "Screen Shot 2018-10-11 at 5.22.32 PM.png", type: "file" }))));
};
return FileContentItem;
}(React.PureComponent));
export default FileContentItem;
//# sourceMappingURL=File.js.map