office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
34 lines • 1.77 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var Shimmer_1 = require("office-ui-fabric-react/lib/Shimmer");
var ShimmerExampleStyles = require("./Shimmer.Example.scss");
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
;