UNPKG

@up-group/react-controls

Version:

We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get

54 lines 2.35 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var React = require("react"); var typestyle_1 = require("typestyle"); var index_1 = require("../SvgIcon/index"); var UpBulle = (function (_super) { __extends(UpBulle, _super); function UpBulle(p, c) { var _this = _super.call(this, p, c) || this; _this.state = {}; return _this; } UpBulle.prototype.render = function () { var BulleStyle = typestyle_1.style({ fontSize: "12px", cursor: "pointer", color: "white", width: "228px", height: "50px", borderRadius: "4px", boxShadow: "0 4px 8px 0 rgba(0, 0, 0, 0.2)", padding: "7px 10px 5px 5px", margin: "0px 25px 25px 0px", float: "left", }); var IconStyle = typestyle_1.style({ margin: "5px", }); return React.createElement("div", { className: BulleStyle, style: { backgroundImage: this.props.BackgroundImage } }, React.createElement(index_1.default, { className: IconStyle, iconName: this.props.icon, color: "white" }), React.createElement("p", { style: { padding: "0px 5px 5px 10px", float: "left", fontSize: "24px" } }, this.props.Valeur, " "), React.createElement("p", { style: { paddingTop: "6px", float: "left", wordWrap: "break-word", width: "150px" } }, this.props.Message, " "), React.createElement("p", { style: { padding: "0px 5px 5px 10px", float: "left" } }, this.props.children, " ")); }; return UpBulle; }(React.Component)); exports.default = UpBulle; //# sourceMappingURL=UpBulle.js.map