@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
32 lines • 1.91 kB
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { BaseComponent, classNamesFunction } from '../../../Utilities';
var getClassNames = classNamesFunction();
var ShimmerLineBase = /** @class */ (function (_super) {
tslib_1.__extends(ShimmerLineBase, _super);
function ShimmerLineBase(props) {
return _super.call(this, props) || this;
}
ShimmerLineBase.prototype.render = function () {
var _a = this.props, height = _a.height, styles = _a.styles, widthInPercentage = _a.widthInPercentage, widthInPixel = _a.widthInPixel, borderStyle = _a.borderStyle, theme = _a.theme;
this._classNames = getClassNames(styles, {
theme: theme,
height: height,
widthInPixel: widthInPixel,
widthInPercentage: widthInPercentage,
borderStyle: borderStyle
});
return (React.createElement("div", { className: this._classNames.root },
React.createElement("svg", { width: "2", height: "2", className: this._classNames.topLeftCorner },
React.createElement("path", { d: "M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z" })),
React.createElement("svg", { width: "2", height: "2", className: this._classNames.topRightCorner },
React.createElement("path", { d: "M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z" })),
React.createElement("svg", { width: "2", height: "2", className: this._classNames.bottomRightCorner },
React.createElement("path", { d: "M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z" })),
React.createElement("svg", { width: "2", height: "2", className: this._classNames.bottomLeftCorner },
React.createElement("path", { d: "M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z" }))));
};
return ShimmerLineBase;
}(BaseComponent));
export { ShimmerLineBase };
//# sourceMappingURL=ShimmerLine.base.js.map