UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Microsoft 365.

25 lines 988 B
import { __assign, __extends } from "tslib"; import * as React from 'react'; import { ChicletCard } from './ChicletCard'; import { ChicletXsmall } from './ChicletXsmall'; import { ChicletSize } from './Chiclet.types'; var ChicletBase = /** @class */ (function (_super) { __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 ChicletSize.medium: return React.createElement(ChicletCard, __assign({}, props)); case ChicletSize.xSmall: return React.createElement(ChicletXsmall, __assign({}, props)); default: return React.createElement(ChicletCard, __assign({}, props)); } }; return ChicletBase; }(React.Component)); export { ChicletBase }; //# sourceMappingURL=Chiclet.base.js.map