UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Microsoft 365.

24 lines 1.25 kB
define(["require", "exports", "tslib", "react", "./ChicletCard", "./ChicletXsmall", "./Chiclet.types"], function (require, exports, tslib_1, React, ChicletCard_1, ChicletXsmall_1, Chiclet_types_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ChicletBase = /** @class */ (function (_super) { tslib_1.__extends(ChicletBase, _super); function ChicletBase() { return _super !== null && _super.apply(this, arguments) || this; } ChicletBase.prototype.render = function () { var props = this.props; switch (this.props.size) { case Chiclet_types_1.ChicletSize.medium: return React.createElement(ChicletCard_1.ChicletCard, tslib_1.__assign({}, props)); case Chiclet_types_1.ChicletSize.xSmall: return React.createElement(ChicletXsmall_1.ChicletXsmall, tslib_1.__assign({}, props)); default: return React.createElement(ChicletCard_1.ChicletCard, tslib_1.__assign({}, props)); } }; return ChicletBase; }(React.Component)); exports.ChicletBase = ChicletBase; }); //# sourceMappingURL=Chiclet.base.js.map