UNPKG

@momentum-ui/react-collaboration

Version:

Cisco Momentum UI Framework for React Collaboration Applications

54 lines 5.53 kB
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 ContentItemSizes = /** @class */ (function (_super) { __extends(ContentItemSizes, _super); function ContentItemSizes() { return _super !== null && _super.apply(this, arguments) || this; } ContentItemSizes.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", null, React.createElement(ContentItem, { aspect: "twoThree", content: "http://www.emertatmassage.com/wp-content/uploads/2014/06/img-16.jpg", subtitle: "Barbara German, 4 days", type: "file", actionNode: actionNode, onClick: handleClick, title: "2:3" }), React.createElement(ContentItem, { aspect: "threeFour", content: "http://www.emertatmassage.com/wp-content/uploads/2014/06/img-16.jpg", subtitle: "Barbara German, 4 days", onClick: handleClick, type: "file", title: "3:4" }), React.createElement(ContentItem, { aspect: "sixteenNine", content: "http://panoramicvisions.com/images/banner-img11.jpg", subtitle: "Barbara German, 4 days", type: "file", title: "16:9" }), React.createElement(ContentItem, { aspect: "nineSixteen", content: "http://www.emertatmassage.com/wp-content/uploads/2014/06/img-16.jpg", subtitle: "Barbara German, 4 days", type: "file", title: "9:16" }), React.createElement(ContentItem, { aspect: "oneOne", content: "http://www.emertatmassage.com/wp-content/uploads/2014/06/img-16.jpg", subtitle: "Barbara German, 4 days", type: "file", title: "1:1" }), React.createElement(ContentItem, { aspect: "fourThree", content: "http://www.emertatmassage.com/wp-content/uploads/2014/06/img-16.jpg", subtitle: "Barbara German, 4 days", type: "file", title: "4:3" }), React.createElement(ContentItem, { aspect: "threeTwo", content: "http://www.emertatmassage.com/wp-content/uploads/2014/06/img-16.jpg", subtitle: "Barbara German, 4 days", type: "file", title: "3:2" }), React.createElement(ContentItem, { aspect: "oneOne", content: "https://newevolutiondesigns.com/images/freebies/yellow-wallpaper-12.jpg", subtitle: "Barbara German, 4 days", type: "chat", onClick: handleClick, title: "1:1, 3:2 Container" }), React.createElement(ContentItem, { aspect: "threeFour", content: "https://newevolutiondesigns.com/images/freebies/yellow-wallpaper-12.jpg", subtitle: "Barbara German, 4 days", type: "chat", title: "3:4, 3:2 container" }), React.createElement(ContentItem, { aspect: "twoThree", content: "https://newevolutiondesigns.com/images/freebies/yellow-wallpaper-12.jpg", subtitle: "Barbara German, 4 days", type: "chat", title: "2:3, 3:2 container" }), React.createElement(ContentItem, { aspect: "tall", content: "https://newevolutiondesigns.com/images/freebies/yellow-wallpaper-12.jpg", subtitle: "Barbara German, 4 days", type: "chat", title: "Tall, 3:2 container" }), React.createElement(ContentItem, { aspect: "wide", content: "https://newevolutiondesigns.com/images/freebies/yellow-wallpaper-12.jpg", subtitle: "Barbara German, 4 days", type: "chat", title: "Wide, 16:9 container" }), React.createElement(ContentItem, { aspect: "fourThree", content: "https://newevolutiondesigns.com/images/freebies/yellow-wallpaper-12.jpg", subtitle: "Barbara German, 4 days", type: "chat", title: "4:3" }), React.createElement(ContentItem, { aspect: "threeTwo", content: "https://newevolutiondesigns.com/images/freebies/yellow-wallpaper-12.jpg", subtitle: "Barbara German, 4 days", type: "chat", title: "3:2" }), React.createElement(ContentItem, { aspect: "sixteenNine", content: "https://newevolutiondesigns.com/images/freebies/yellow-wallpaper-12.jpg", subtitle: "Barbara German, 4 days", type: "chat", title: "16:9" }))); }; return ContentItemSizes; }(React.PureComponent)); export default ContentItemSizes; //# sourceMappingURL=Size.js.map