UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

32 lines 1.89 kB
define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/Shimmer", "./Shimmer.Example.scss"], function (require, exports, tslib_1, React, Shimmer_1, ShimmerExampleStyles) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ShimmerStylingExample = /** @class */ (function (_super) { tslib_1.__extends(ShimmerStylingExample, _super); function ShimmerStylingExample(props) { var _this = _super.call(this, props) || this; _this._getShimmerStyles = function (props) { return { shimmerWrapper: [ { backgroundColor: '#deecf9', backgroundImage: 'linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #c7e0f4 50%, rgba(255, 255, 255, 0) 100%)' } ] }; }; return _this; } ShimmerStylingExample.prototype.render = function () { return (React.createElement("div", { className: ShimmerExampleStyles.shimmerExampleContainer }, React.createElement(Shimmer_1.Shimmer, { width: '75%', styles: this._getShimmerStyles }), React.createElement(Shimmer_1.Shimmer, { width: '75%', styles: this._getShimmerStyles }), React.createElement(Shimmer_1.Shimmer, { width: '75%', styles: this._getShimmerStyles }), React.createElement(Shimmer_1.Shimmer, { width: '75%', styles: this._getShimmerStyles }), React.createElement(Shimmer_1.Shimmer, { width: '75%', styles: this._getShimmerStyles }))); }; return ShimmerStylingExample; }(React.Component)); exports.ShimmerStylingExample = ShimmerStylingExample; }); //# sourceMappingURL=Shimmer.Styling.Example.js.map